Skip to content

Commit eeefc4e

Browse files
susnuxAndyScherzinger
authored andcommitted
fix(files): fallback to action id if displayname is empty
This fixes invalid error messages if the action has an empty displayname, often the case for inline actions Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 4420821 commit eeefc4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files/src/utils/actionUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export async function executeAction(action: IFileAction) {
4848

4949
let displayName = action.id
5050
try {
51-
displayName = action.displayName(context)
51+
displayName = action.displayName(context) || displayName
5252
} catch (error) {
5353
logger.error('Error while getting action display name', { action, error })
5454
}

0 commit comments

Comments
 (0)