mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(editor): Add optional chaining to pruning.isEnabled
(no-changelog) (#12023)
This commit is contained in:
parent
78c64adb09
commit
127d864bbb
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue