Skip to content

Commit

Permalink
fix: reset policyID when doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
sangar-1028 committed Jan 25, 2024
1 parent c8b3e5a commit b6151fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/workspace/WorkspaceNewRoomPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function WorkspaceNewRoomPage(props) {

useEffect(() => {
if (policyID) {
if (_.some(workspaceOptions, (opt) => opt.value === policyID)) {
if (!_.some(workspaceOptions, (opt) => opt.value === policyID)) {
setPolicyID('');
}
return;
Expand Down

0 comments on commit b6151fe

Please sign in to comment.