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