Skip to content

Commit

Permalink
(fix) Follow-up to #969, fix bug where workspaces don't close
Browse files Browse the repository at this point in the history
  • Loading branch information
brandones committed May 23, 2024
1 parent 683cf25 commit c2d678c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const Workspace: React.FC<WorkspaceProps> = ({ workspaceInstance }) => {
<div className={styles.headerContent}>{title}</div>
<Button
className={styles.closeButton}
onClick={() => workspaceInstance?.closeWorkspace}
onClick={() => workspaceInstance?.closeWorkspace()}
kind="ghost"
hasIconOnly
iconDescription={getCoreTranslation('close', 'Close')}
Expand All @@ -111,7 +111,7 @@ const Workspace: React.FC<WorkspaceProps> = ({ workspaceInstance }) => {
aria-label={getCoreTranslation('workspaceHeader', 'Workspace header')}
>
<Button
onClick={() => workspaceInstance.closeWorkspace}
onClick={() => workspaceInstance.closeWorkspace()}
kind="ghost"
hasIconOnly
iconDescription={getCoreTranslation('close', 'Close')}
Expand Down

0 comments on commit c2d678c

Please # to comment.