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>
This commit is contained in:
Ferdinand Thiessen 2026-02-12 17:20:30 +01:00
parent cd15bb0679
commit f2574fdf34
No known key found for this signature in database
GPG key ID: 7E849AE05218500F

View file

@ -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 })
}