fixed yaml file advanced setting not populating issue at model traini…#120
fixed yaml file advanced setting not populating issue at model traini…#120sam4coding wants to merge 2 commits intoPytorchConnectomics:mainfrom
Conversation
|
The original issue (#110) is about a specific case where the Auto-populating the advanced config page already works for other yaml config files (like those in Also, not sure if the And you can see instructions in |
871cc27 to
98a7a52
Compare


Fix: Advanced Configuration tab not auto-populating when YAML preset is selected
Root Cause: The useEffect hook in
YamlFileEditor.js
had context.uploadedYamlFile in its dependency array, which prevented the YAML content from loading properly when a preset was selected (since uploadedYamlFile doesn't change for presets).
Solution: Removed context.uploadedYamlFile from the dependency array. The effect now correctly triggers whenever trainingConfig or inferenceConfig changes, regardless of whether the config came from an uploaded file or a preset.
Files Modified:
client/src/components/YamlFileEditor.js
(line 331-335)