From b6151febb49e7e7c131a15242dd85c6121c938fb Mon Sep 17 00:00:00 2001 From: s-alves10 Date: Thu, 25 Jan 2024 16:00:15 -0600 Subject: [PATCH] fix: reset policyID when doesn't exist --- src/pages/workspace/WorkspaceNewRoomPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/workspace/WorkspaceNewRoomPage.js b/src/pages/workspace/WorkspaceNewRoomPage.js index aaaa71219c2a..b616b519ff32 100644 --- a/src/pages/workspace/WorkspaceNewRoomPage.js +++ b/src/pages/workspace/WorkspaceNewRoomPage.js @@ -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;