mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
Enable ts-strict for settingStore (#1322)
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
// @ts-strict-ignore
|
|
||||||
/**
|
/**
|
||||||
* TODO: Migrate scripts/ui/settings.ts here
|
* TODO: Migrate scripts/ui/settings.ts here
|
||||||
*
|
*
|
||||||
@@ -42,9 +41,9 @@ export const useSettingStore = defineStore('setting', {
|
|||||||
(setting: SettingParams) => setting.category || setting.id.split('.')
|
(setting: SettingParams) => setting.category || setting.id.split('.')
|
||||||
)
|
)
|
||||||
|
|
||||||
const floatingSettings = root.children.filter((node) => node.leaf)
|
const floatingSettings = (root.children ?? []).filter((node) => node.leaf)
|
||||||
if (floatingSettings.length) {
|
if (floatingSettings.length) {
|
||||||
root.children = root.children.filter((node) => !node.leaf)
|
root.children = (root.children ?? []).filter((node) => !node.leaf)
|
||||||
root.children.push({
|
root.children.push({
|
||||||
key: 'Other',
|
key: 'Other',
|
||||||
label: 'Other',
|
label: 'Other',
|
||||||
|
|||||||
Reference in New Issue
Block a user