Fix load crash when graph or config unset (#1587)

Resolves #1585
This commit is contained in:
filtered
2024-11-19 04:51:46 +11:00
committed by GitHub
parent 7e245ba1cf
commit a8f869337e

View File

@@ -182,8 +182,10 @@ watchEffect(() => {
})
watchEffect(() => {
comfyApp.graph.config.alwaysSnapToGrid =
settingStore.get('pysssss.SnapToGrid')
if (comfyApp.graph?.config) {
comfyApp.graph.config.alwaysSnapToGrid =
settingStore.get('pysssss.SnapToGrid')
}
})
watchEffect(() => {