File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
packages/webui/src/client/ui/UserEditOperations Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -414,6 +414,14 @@ function EditingTypeChangeSourceLayerSource(props: {
414414 ) ?. schema
415415 const selectedGroupSchema = jsonSchema ? JSONBlobParse ( jsonSchema ) : undefined
416416
417+ React . useEffect ( ( ) => {
418+ const pendingChange = props . pendingChanges . find ( ( change ) => change . operationId === props . userEditOperation . id )
419+
420+ setSelectedSourceButton ( pendingChange ?. sourceLayerType || props . userEditOperation . currentValues . type )
421+
422+ setSelectedValues ( pendingChange ?. value || props . userEditOperation . currentValues . value )
423+ } , [ props . userEditOperation . id , props . pendingChanges ] )
424+
417425 const handleSourceChange = ( ) => {
418426 setSelectedValues ( selectedValues )
419427 // Add to pending changes instead of executing immediately
You can’t perform that action at this time.
0 commit comments