Skip to content

Commit

Permalink
Show only messages from the current workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkingjimmy committed Mar 6, 2024
1 parent a9f2850 commit 6d6d971
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,16 @@ function WorkflowPageNodeError({ log }: { log: ComflowyConsoleLog }) {
const nodes = useAppStore(st => st.nodes);
const router = useRouter();
const currentWorkflowId = router.query.id;

if (workflowId !== currentWorkflowId) {
return null;
}

const node = nodes.find(n => n.id === nodeId);
const { setViewport, setCenter, zoomIn, zoomOut } = useReactFlow();
const storeApi = useStoreApi();

if (!node || currentWorkflowId !== workflowId) {
if (!node) {
return <LogTypeDefault log={log} />
}

Expand Down

0 comments on commit 6d6d971

Please sign in to comment.