show block outputs only in debugger, not in editor (#3530)
This commit is contained in:
@@ -13,6 +13,7 @@ import { statusIsRunningOrQueued } from "@/routes/tasks/types";
|
|||||||
import { BlockOutputs } from "@/routes/workflows/components/BlockOutputs";
|
import { BlockOutputs } from "@/routes/workflows/components/BlockOutputs";
|
||||||
import { useWorkflowRunQuery } from "@/routes/workflows/hooks/useWorkflowRunQuery";
|
import { useWorkflowRunQuery } from "@/routes/workflows/hooks/useWorkflowRunQuery";
|
||||||
import { useBlockOutputStore } from "@/store/BlockOutputStore";
|
import { useBlockOutputStore } from "@/store/BlockOutputStore";
|
||||||
|
import { useDebugStore } from "@/store/useDebugStore";
|
||||||
import { cn } from "@/util/utils";
|
import { cn } from "@/util/utils";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
@@ -22,6 +23,7 @@ interface Props {
|
|||||||
function NodeTabs({ blockLabel }: Props) {
|
function NodeTabs({ blockLabel }: Props) {
|
||||||
const { blockLabel: urlBlockLabel } = useParams();
|
const { blockLabel: urlBlockLabel } = useParams();
|
||||||
const blockOutput = useBlockOutputStore((state) => state.outputs[blockLabel]);
|
const blockOutput = useBlockOutputStore((state) => state.outputs[blockLabel]);
|
||||||
|
const debugStore = useDebugStore();
|
||||||
const [isExpanded, setIsExpanded] = useState(false);
|
const [isExpanded, setIsExpanded] = useState(false);
|
||||||
const { data: workflowRun } = useWorkflowRunQuery();
|
const { data: workflowRun } = useWorkflowRunQuery();
|
||||||
const workflowRunIsRunningOrQueued =
|
const workflowRunIsRunningOrQueued =
|
||||||
@@ -37,6 +39,10 @@ function NodeTabs({ blockLabel }: Props) {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!debugStore.isDebugMode) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in New Issue
Block a user