Commit ecb261b
committed
Fix duplicate custom node installation in workflow import
When importing workflows with custom nodes that appear multiple times in the node index (e.g., ComfyUI-Impact-Pack), the same extension was being added to MissingNodes multiple times. This caused duplicate InstallExtensionStep objects to be created, leading to multiple git clone attempts for the same extension. The second clone would fail because the directory already exists.
Added deduplication using a HashSet to track which extension titles have already been added to MissingNodes, ensuring each extension is only installed once.1 parent dc91cc4 commit ecb261b
File tree
1 file changed
+5
-2
lines changed- StabilityMatrix.Avalonia/ViewModels/Dialogs
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
163 | | - | |
| 164 | + | |
164 | 165 | | |
165 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
166 | 169 | | |
167 | 170 | | |
168 | 171 | | |
| |||
0 commit comments