Skip to content

Commit

Permalink
run auto layout on result change (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
lihebi authored May 10, 2023
1 parent 23c1fe4 commit eab543b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/src/components/nodes/Code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ export const ResultBlock = memo<any>(function ResultBlock({ id }) {
const error = useStore(store, (state) => state.pods[id].error);
const stdout = useStore(store, (state) => state.pods[id].stdout);
const running = useStore(store, (state) => state.pods[id].running);
const autoLayoutROOT = useStore(store, (state) => state.autoLayoutROOT);
useEffect(() => {
autoLayoutROOT();
}, [running]);
const lastExecutedAt = useStore(
store,
(state) => state.pods[id].lastExecutedAt
Expand Down

0 comments on commit eab543b

Please sign in to comment.