Skip to content

Commit

Permalink
fix: old imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiryous committed Jan 7, 2025
1 parent 67be461 commit d764db4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions keep-ui/app/(keep)/workflows/preview/[workflowId]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use client";
import { useEffect, useState } from "react";
import PageClient from "../../builder/page.client";
import Loading from "@/app/(keep)/loading";
import Link from "next/link";
import { WorkflowBuilderPageClient } from "../../builder/page.client";

export default function PageWithId({
params,
Expand All @@ -27,8 +27,8 @@ export default function PageWithId({
<>
{!workflowPreviewData && <Loading />}
{workflowPreviewData && workflowPreviewData.name === key && (
<PageClient
workflow={workflowPreviewData.workflow_raw || ""}
<WorkflowBuilderPageClient
workflowRaw={workflowPreviewData.workflow_raw || ""}
isPreview={true}
/>
)}
Expand Down
8 changes: 4 additions & 4 deletions keep-ui/app/(keep)/workflows/preview/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";
import { useEffect, useState, Suspense } from "react";
import { useEffect, useState } from "react";
import Loading from "@/app/(keep)/loading";
import PageClient from "../builder/page.client";
import { WorkflowBuilderPageClient } from "../builder/page.client";
import Link from "next/link";

type PageProps = {
Expand All @@ -28,8 +28,8 @@ export default function Page({ params, searchParams }: PageProps) {
<>
{!workflowPreviewData && <Loading />}
{workflowPreviewData && workflowPreviewData.name === key && (
<PageClient
workflow={workflowPreviewData?.Workflow_raw}
<WorkflowBuilderPageClient
workflowRaw={workflowPreviewData?.Workflow_raw}
workflowId={params?.workflowId}
isPreview={true}
/>
Expand Down

0 comments on commit d764db4

Please sign in to comment.