fix: stop the model editor's Builtin Tools section from reading its labels before they exist (#30153)

This commit is contained in:
G30 2026-09-18 19:29:41 -04:00 • committed by GitHub
parent 4d01f1ebed
commit 677341578d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,7 +76,7 @@
}
};
const allTools = Object.keys(toolLabels) as Array<keyof typeof toolLabels>;
$: allTools = Object.keys(toolLabels ?? {}) as Array<keyof typeof toolLabels>;
export let builtinTools: Record<string, boolean> = {};