MVP Debugger UI (#2888)
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
import { cn } from "@/util/utils";
|
||||
import { Outlet, useMatch } from "react-router-dom";
|
||||
import { Outlet, useMatch, useSearchParams } from "react-router-dom";
|
||||
|
||||
function WorkflowsPageLayout() {
|
||||
const match = useMatch("/workflows/:workflowPermanentId/edit");
|
||||
|
||||
const [searchParams] = useSearchParams();
|
||||
const embed = searchParams.get("embed");
|
||||
const match =
|
||||
useMatch("/workflows/:workflowPermanentId/edit") ||
|
||||
location.pathname.includes("debug") ||
|
||||
embed === "true";
|
||||
return (
|
||||
<main
|
||||
className={cn({
|
||||
|
||||
Reference in New Issue
Block a user