Merge pull request #22809 from niraj2477/fix-permission-manager

This commit is contained in:
Shariq Ansari 2023-10-19 13:30:52 +05:30 committed by GitHub
commit 4d54e8a088
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -161,7 +161,7 @@ function parse_option(v) {
is_disabled = Boolean(v.disabled);
is_selected = Boolean(v.selected);
if (is_value_null && is_label_null && typeof v === "string") {
if (is_value_null && is_label_null && typeof v !== "object") {
value = v;
label = __(v);
} else {