From 3b1e4f538dc31acd544dfbc2bbb228602ac659c2 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Mon, 30 Oct 2023 07:06:21 -0700 Subject: [PATCH] Fix editor stale callbacks and recent item deletion --- src-tauri/tauri.conf.json | 2 +- src-web/components/EnvironmentActionsDropdown.tsx | 2 +- src-web/components/EnvironmentEditDialog.tsx | 10 ++++++++-- src-web/components/Workspaces.tsx | 1 + src-web/components/core/Dialog.tsx | 3 ++- src-web/components/core/Editor/Editor.tsx | 7 ++++--- src-web/components/core/Input.tsx | 15 +++++++++------ src-web/hooks/useRecentEnvironments.ts | 13 ++++++++++--- src-web/hooks/useRecentWorkspaces.ts | 12 +++++++++--- 9 files changed, 45 insertions(+), 20 deletions(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 9ac70d76..c9a76d24 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "Yaak", - "version": "2023.1.5" + "version": "2023.1.6" }, "tauri": { "windows": [], diff --git a/src-web/components/EnvironmentActionsDropdown.tsx b/src-web/components/EnvironmentActionsDropdown.tsx index 2f52bd48..f7f5919f 100644 --- a/src-web/components/EnvironmentActionsDropdown.tsx +++ b/src-web/components/EnvironmentActionsDropdown.tsx @@ -28,7 +28,7 @@ export const EnvironmentActionsDropdown = memo(function EnvironmentActionsDropdo const showEnvironmentDialog = useCallback(() => { dialog.show({ - title: "Manage Environments", + title: 'Manage Environments', render: () => , }); }, [dialog]); diff --git a/src-web/components/EnvironmentEditDialog.tsx b/src-web/components/EnvironmentEditDialog.tsx index 5aa318b6..bdb259bc 100644 --- a/src-web/components/EnvironmentEditDialog.tsx +++ b/src-web/components/EnvironmentEditDialog.tsx @@ -37,7 +37,7 @@ export const EnvironmentEditDialog = function () { )} > {showSidebar && ( -