Skip to content

Commit

Permalink
fix type check
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkav committed Sep 27, 2024
1 parent 17b487a commit dcfbfe1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ export const WorkspaceEnvironmentsEditModal = ({ onClose }: {
dragAndDropHooks={environmentsDragAndDrop.dragAndDropHooks}
onSelectionChange={keys => {
if (keys !== 'all') {
setSelectedEnvironmentId(keys.values().next().value);
const [environmentId] = keys.values();
setSelectedEnvironmentId(environmentId.toString());
}
}}
>
Expand Down

0 comments on commit dcfbfe1

Please sign in to comment.