fix(command-dropdown): preserve running command status across folder switches
This commit is contained in:
@@ -110,11 +110,9 @@ export function CommandDropdown() {
|
||||
useEffect(() => {
|
||||
if (!folderId) {
|
||||
setSelectedCommandIdState(null)
|
||||
setRunningCommandTerminals({})
|
||||
return
|
||||
}
|
||||
setSelectedCommandIdState(getSelectedCommandId(folderId))
|
||||
setRunningCommandTerminals({})
|
||||
}, [folderId])
|
||||
|
||||
const refreshCommands = useCallback(async () => {
|
||||
|
||||
Reference in New Issue
Block a user