mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(editor): Add optional chaining to pruning.isEnabled (no-changelog) (#12023)
This commit is contained in:
@@ -163,7 +163,7 @@ export interface FrontendSettings {
|
||||
pruneTime: number;
|
||||
licensePruneTime: number;
|
||||
};
|
||||
pruning: {
|
||||
pruning?: {
|
||||
isEnabled: boolean;
|
||||
maxAge: number;
|
||||
maxCount: number;
|
||||
|
||||
@@ -96,12 +96,12 @@ export function useDebugInfo() {
|
||||
};
|
||||
|
||||
const pruningInfo = () => {
|
||||
if (!settingsStore.pruning.isEnabled) return { enabled: false } as const;
|
||||
if (!settingsStore.pruning?.isEnabled) return { enabled: false } as const;
|
||||
|
||||
return {
|
||||
enabled: true,
|
||||
maxAge: `${settingsStore.pruning.maxAge} hours`,
|
||||
maxCount: `${settingsStore.pruning.maxCount} executions`,
|
||||
maxAge: `${settingsStore.pruning?.maxAge} hours`,
|
||||
maxCount: `${settingsStore.pruning?.maxCount} executions`,
|
||||
} as const;
|
||||
};
|
||||
|
||||
|
||||
@@ -20,7 +20,8 @@
|
||||
"@/*": ["./src/*"],
|
||||
"n8n-design-system": ["../design-system/src/main.ts"],
|
||||
"n8n-design-system/*": ["../design-system/src/*"],
|
||||
"@n8n/chat/*": ["../@n8n/chat/src/*"]
|
||||
"@n8n/chat/*": ["../@n8n/chat/src/*"],
|
||||
"@n8n/api-types*": ["../@n8n/api-types/src*"]
|
||||
},
|
||||
"lib": ["esnext", "dom", "dom.iterable", "scripthost"],
|
||||
// TODO: remove all options below this line
|
||||
|
||||
Reference in New Issue
Block a user