Skip to content

Commit d6d040a

Browse files
committed
Fix empty options
1 parent 481b8ba commit d6d040a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nx/blocks/loc/views/options/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class NxLocOptions extends LitElement {
134134

135135
getCommaValues(prop) {
136136
if (!prop) return [];
137-
return this._siteConfig[prop].split(',').map((value) => value.trim());
137+
return this._siteConfig[prop]?.split(',').map((value) => value.trim()) || [];
138138
}
139139

140140
hasLocales() {

0 commit comments

Comments
 (0)