Skip to content

Commit

Permalink
Merge pull request #11748 from 1notchdev/leonardo_fix_11636
Browse files Browse the repository at this point in the history
Fix issue #11636 - toLowerCase of undefined issue in Policy.js
  • Loading branch information
puneetlath authored Oct 13, 2022
2 parents 44c75aa + 162fa30 commit f3dc1c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libs/actions/Policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -743,8 +743,7 @@ function generateDefaultWorkspaceName() {
// Check if this name already exists in the policies
let suffix = 0;
_.forEach(allPolicies, (policy) => {
// Get the name of the policy
const {name} = policy;
const name = lodashGet(policy, 'name', '');

if (name.toLowerCase().includes(defaultWorkspaceName.toLowerCase())) {
suffix += 1;
Expand Down

0 comments on commit f3dc1c3

Please sign in to comment.