alizarin 2.0.0-alpha.129 → 2.0.0-alpha.131

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.
@@ -1,8 +1,8 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { w as wasmReady, r as registerExtensionHandler, C as CUSTOM_DATATYPES, g as getCurrentLanguage, a as registerResolvableDatatype, n as nodeConfigManager, R as RDM } from "./main-INz8DKs7.js";
5
- import { A, K, G, p, o, T, L, N, c, I, J, U, k, y, X, S, t, W, B, l, b, _, j, D, m, F, H, V, i, z, O, q, P, Q, x, d, f, s, E, h, u, M, v, e } from "./main-INz8DKs7.js";
4
+ import { w as wasmReady, r as registerExtensionHandler, C as CUSTOM_DATATYPES, g as getCurrentLanguage, a as registerResolvableDatatype, n as nodeConfigManager, R as RDM } from "./main-CASYMpIT.js";
5
+ import { A, K, G, p, o, T, L, N, c, I, J, U, k, y, X, S, t, W, B, l, b, _, j, D, m, F, H, V, i, z, O, q, P, Q, x, d, f, s, E, h, u, M, v, e } from "./main-CASYMpIT.js";
6
6
  function coerceFileList(value) {
7
7
  const ret = wasm.coerceFileList(value);
8
8
  if (ret[2]) {
@@ -1029,8 +1029,12 @@ class ReferenceValueViewModel extends String {
1029
1029
  tile.data.set(nodeid, null);
1030
1030
  }
1031
1031
  if (value !== null) {
1032
- if (Array.isArray(value) && value.length === 1) {
1033
- value = value[0];
1032
+ if (Array.isArray(value)) {
1033
+ if (value.length === 1) {
1034
+ value = value[0];
1035
+ } else if (value.length === 0) {
1036
+ return null;
1037
+ }
1034
1038
  }
1035
1039
  if (value instanceof Promise) {
1036
1040
  return value.then((value2) => {