add some logging for workflow restore

This commit is contained in:
Weixuan Fu
2024-08-04 17:50:33 +08:00
parent 99126eea03
commit acaa2e4c35
@@ -67,8 +67,13 @@ export default function AppIsDirtyEventListener() {
return;
}
const id = app.graph.extra?.[COMFYSPACE_TRACKING_FIELD_NAME]?.id;
console.log("🦄 Restoring workflow... id=", id);
if (id) {
const flow = await workflowsTable?.get(id);
console.log(
"🦄 Restored workflow",
flow?.parentFolderID + "/" + flow?.name,
);
flow && setCurFlowIDAndName(flow);
if (