Skip to content

Commit

Permalink
Fix delete params and refresh button behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
dakotablair committed Sep 8, 2023
1 parent 4ed55b5 commit e2dff6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/api/workspaceApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<
Expand Down
3 changes: 2 additions & 1 deletion src/features/navigator/RefreshButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ const RefreshButton: FC = () => {
return (
<Button
className="refresh"
color={syncd ? 'primary' : 'warning'}
color="primary"
disabled={!syncd}
icon={<FAIcon icon={faRefresh} />}
onClick={refreshHandler}
>
Expand Down

0 comments on commit e2dff6e

Please sign in to comment.