mirror of
https://github.com/Kong/insomnia.git
synced 2026-05-24 08:37:35 -04:00
fix: timers is not reset if no timing entry has been found (#8134)
* fix: timers is not reset if no timing entry has been found * fix: check mounting state
This commit is contained in:
@@ -14,6 +14,8 @@ export function useExecutionState({ requestId }: { requestId?: string }) {
|
||||
const targetSteps = await window.main.getExecution({ requestId });
|
||||
if (targetSteps) {
|
||||
isMounted && setSteps(targetSteps);
|
||||
} else {
|
||||
isMounted && setSteps([]);
|
||||
}
|
||||
};
|
||||
fn();
|
||||
|
||||
Reference in New Issue
Block a user