goodteditor-ui 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -339,11 +339,11 @@ export default {
|
|
|
339
339
|
this.$emit('change', value);
|
|
340
340
|
},
|
|
341
341
|
getOptionLabel(option) {
|
|
342
|
-
let label = option[this.labelField];
|
|
342
|
+
let label = option ? option[this.labelField] : null;
|
|
343
343
|
return label == null ? option : label;
|
|
344
344
|
},
|
|
345
345
|
getOptionValue(option) {
|
|
346
|
-
let value = option[this.valueField];
|
|
346
|
+
let value = option ? option[this.valueField] : null;
|
|
347
347
|
// @NOTE option.value might be 'null'
|
|
348
348
|
return value === undefined ? option : value;
|
|
349
349
|
},
|