From 171fbf6abb2cd774b10f9f4f5a4b578da66a89e3 Mon Sep 17 00:00:00 2001 From: Matt Krick Date: Mon, 9 Dec 2024 16:25:15 -0800 Subject: [PATCH] fix: parabol poker scoping task is writeable until submitted Signed-off-by: Matt Krick --- packages/client/components/ParabolScopingSearchResultItem.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/client/components/ParabolScopingSearchResultItem.tsx b/packages/client/components/ParabolScopingSearchResultItem.tsx index f396265dee1..4701e7f6562 100644 --- a/packages/client/components/ParabolScopingSearchResultItem.tsx +++ b/packages/client/components/ParabolScopingSearchResultItem.tsx @@ -100,7 +100,8 @@ const ParabolScopingSearchResultItem = (props: Props) => { const handleTaskUpdate = () => { if (!editor) return const isFocused = isTaskFocused() - if (editor.isEmpty && !isFocused) { + if (isFocused) return + if (editor.isEmpty) { DeleteTaskMutation(atmosphere, {taskId: serviceTaskId}) return }