mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
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:
parent
cd15bb0679
commit
f2574fdf34
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue