Skip to content

Commit d017a87

Browse files
authored
Merge pull request #64 from ClayPulse/hotfix
Hotfix duplicate viewId when opening app node in new fullscreen tab
2 parents 0eee35e + 77ac7ea commit d017a87

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

web/components/views/canvas/nodes/app-node.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { AppViewConfig } from "@/lib/types";
33
import { ViewModeEnum } from "@pulse-editor/shared-utils";
44
import { Node } from "@xyflow/react";
55
import { memo } from "react";
6+
import { v4 } from "uuid";
67
import BaseAppView from "../../base/base-app-view";
78
import CanvasNodeViewLayout from "../../layout/canvas-node-view-layout";
89

@@ -15,7 +16,10 @@ const AppNode = memo((props: any) => {
1516
const { createTabView, deleteAppViewInCanvasView } = useTabViewManager();
1617

1718
async function openViewInFullScreen() {
18-
await createTabView(ViewModeEnum.App, config);
19+
await createTabView(ViewModeEnum.App, {
20+
...config,
21+
viewId: v4(),
22+
});
1923
}
2024

2125
return (

0 commit comments

Comments
 (0)