We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9a4d32 commit 41eea76Copy full SHA for 41eea76
adminforth/modules/codeInjector.ts
@@ -456,7 +456,7 @@ class CodeInjector implements ICodeInjector {
456
const cc = action.customComponent;
457
if (!cc) return;
458
459
- const file = cc.file;
+ const file = (typeof cc === 'string') ? cc : cc.file;
460
if (!file) {
461
throw new Error('customComponent.file is missing for action: ' + JSON.stringify({ id: action.id, name: action.name }));
462
}
0 commit comments