Fixed some bugs with ui and lock job name to prevent issues with continuing training.

This commit is contained in:
Jaret Burkett
2025-02-22 11:49:36 -07:00
parent 5f094fb17a
commit f60698d0ee
3 changed files with 27 additions and 12 deletions

View File

@@ -77,6 +77,10 @@ export function useNestedState<T>(initialState: T): [T, (value: any, path?: stri
const [state, setState] = React.useState<T>(initialState);
const setValue = React.useCallback((value: any, path?: string) => {
if (path === undefined) {
setState(value);
return
}
setState(prevState => setNestedValue(prevState, value, path));
}, []);