File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -33,16 +33,25 @@ const updateNodeSearchSetting = (e: LiteGraphNodeSearchSettingEvent) => {
3333 nodeSearchEnabled .value = ! e .detail ;
3434};
3535
36- onMounted ( async () => {
36+ const init = async () => {
3737 const nodeDefs = Object .values (await api .getNodeDefs ());
3838 nodeSearchService .value = new NodeSearchService (nodeDefs );
39- isLoading .value = false ;
4039
4140 document .addEventListener (" comfy:setting:color-palette-loaded" , updateTheme );
4241 document .addEventListener (
4342 " comfy:setting:litegraph-node-search" ,
4443 updateNodeSearchSetting
4544 );
45+ };
46+
47+ onMounted (async () => {
48+ try {
49+ await init ();
50+ } catch (e ) {
51+ console .error (" Failed to init Vue app" , e );
52+ } finally {
53+ isLoading .value = false ;
54+ }
4655});
4756
4857onUnmounted (() => {
You can’t perform that action at this time.
0 commit comments