Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 Platform bug squashing #1178

Merged
merged 11 commits into from
Aug 2, 2023
8 changes: 7 additions & 1 deletion next/src/pages/workflow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ const WorkflowPage: NextPage = () => {

const [open, setOpen] = useState(false);

const onPaneClick = () => {
if (!showCreateForm) {
shahrishabh7 marked this conversation as resolved.
Show resolved Hide resolved
setOpen(true);
}
};

const changeQueryParams = async (newParams: Record<string, string | undefined>) => {
let updatedParams = {
...router.query,
Expand Down Expand Up @@ -252,7 +258,7 @@ const WorkflowPage: NextPage = () => {
nodesModel={nodesModel}
edgesModel={edgesModel}
className="min-h-screen flex-1"
onPaneClick={() => setOpen(true)}
onPaneClick={onPaneClick}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed this to onPaneDoubleClick in a different commit, should be good to merge after fixing conflicts :)

/>
</>
);
Expand Down
Loading