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>
pull/58294/head
Ferdinand Thiessen 2 weeks ago committed by Andy Scherzinger
parent 442082137f
commit eeefc4e20b
  1. 2
      apps/files/src/utils/actionUtils.ts

@ -48,7 +48,7 @@ export async function executeAction(action: IFileAction) {
let displayName = action.id
try {
displayName = action.displayName(context)
displayName = action.displayName(context) || displayName
} catch (error) {
logger.error('Error while getting action display name', { action, error })
}

Loading…
Cancel
Save