From e2dff6e8c91a6068008be9c4fdb608306ba9a47f Mon Sep 17 00:00:00 2001 From: Dakota Blair Date: Wed, 6 Sep 2023 14:59:05 -0400 Subject: [PATCH] Fix delete params and refresh button behavior. --- src/common/api/workspaceApi.ts | 2 +- src/features/navigator/RefreshButton.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/api/workspaceApi.ts b/src/common/api/workspaceApi.ts index 5c82528c..63c809cb 100644 --- a/src/common/api/workspaceApi.ts +++ b/src/common/api/workspaceApi.ts @@ -106,7 +106,7 @@ const wsApi = baseApi.injectEndpoints({ query: ({ wsId, reqId }) => ws({ method: 'Workspace.delete_workspace', - params: [{ workspaces: [{ id: wsId }] }], + params: [{ id: wsId }], }), }), getwsNarrative: builder.query< diff --git a/src/features/navigator/RefreshButton.tsx b/src/features/navigator/RefreshButton.tsx index 01971dd4..1a997afc 100644 --- a/src/features/navigator/RefreshButton.tsx +++ b/src/features/navigator/RefreshButton.tsx @@ -44,7 +44,8 @@ const RefreshButton: FC = () => { return (