From dc77e4afdb86574bf02a204908b66f185f43a1fa Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Fri, 10 May 2024 15:25:16 +0530 Subject: [PATCH] chore: project publish modal improvement (#4422) --- web/components/project/publish-project/modal.tsx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/web/components/project/publish-project/modal.tsx b/web/components/project/publish-project/modal.tsx index 0b94c56f1..6f2f68fad 100644 --- a/web/components/project/publish-project/modal.tsx +++ b/web/components/project/publish-project/modal.tsx @@ -139,13 +139,7 @@ export const PublishProjectModal: React.FC = observer((props) => { const handlePublishProject = async (payload: IProjectPublishSettings) => { if (!workspaceSlug) return; - return publishProject(workspaceSlug.toString(), project.id, payload) - .then((res) => { - handleClose(); - // window.open(`${plane_deploy_url}/${workspaceSlug}/${project.id}`, "_blank"); - return res; - }) - .catch((err) => err); + return publishProject(workspaceSlug.toString(), project.id, payload); }; const handleUpdatePublishSettings = async (payload: IProjectPublishSettings) => { @@ -174,10 +168,6 @@ export const PublishProjectModal: React.FC = observer((props) => { setIsUnPublishing(true); await unPublishProject(workspaceSlug.toString(), project.id, publishId) - .then((res) => { - handleClose(); - return res; - }) .catch(() => setToast({ type: TOAST_TYPE.ERROR,