@budibase/frontend-core 2.11.37 → 2.11.38

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
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@budibase/frontend-core",
3
- "version": "2.11.37",
3
+ "version": "2.11.38",
4
4
  "description": "Budibase frontend core libraries used in builder and client",
5
5
  "author": "Budibase",
6
6
  "license": "MPL-2.0",
7
7
  "svelte": "src/index.js",
8
8
  "dependencies": {
9
- "@budibase/bbui": "2.11.37",
10
- "@budibase/shared-core": "2.11.37",
9
+ "@budibase/bbui": "2.11.38",
10
+ "@budibase/shared-core": "2.11.38",
11
11
  "dayjs": "^1.10.8",
12
12
  "lodash": "^4.17.21",
13
13
  "socket.io-client": "^4.6.1",
14
14
  "svelte": "^3.46.2"
15
15
  },
16
- "gitHead": "735961cf9cbfe40adbb1c983976a21ee18ba2433"
16
+ "gitHead": "ec768a59f56e7aabc38e2e8bf0defe9e91a3f7e6"
17
17
  }
@@ -260,29 +260,31 @@
260
260
  class:wrap={editable || contentLines > 1}
261
261
  on:wheel={e => (focused ? e.stopPropagation() : null)}
262
262
  >
263
- {#each value || [] as relationship}
264
- {#if relationship[primaryDisplay] || relationship.primaryDisplay}
265
- <div class="badge">
266
- <span
267
- on:click={editable
268
- ? () => showRelationship(relationship._id)
269
- : null}
270
- >
271
- {readable(
272
- relationship[primaryDisplay] || relationship.primaryDisplay
273
- )}
274
- </span>
275
- {#if editable}
276
- <Icon
277
- name="Close"
278
- size="XS"
279
- hoverable
280
- on:click={() => toggleRow(relationship)}
281
- />
282
- {/if}
283
- </div>
284
- {/if}
285
- {/each}
263
+ {#if Array.isArray(value) && value.length}
264
+ {#each value as relationship}
265
+ {#if relationship[primaryDisplay] || relationship.primaryDisplay}
266
+ <div class="badge">
267
+ <span
268
+ on:click={editable
269
+ ? () => showRelationship(relationship._id)
270
+ : null}
271
+ >
272
+ {readable(
273
+ relationship[primaryDisplay] || relationship.primaryDisplay
274
+ )}
275
+ </span>
276
+ {#if editable}
277
+ <Icon
278
+ name="Close"
279
+ size="XS"
280
+ hoverable
281
+ on:click={() => toggleRow(relationship)}
282
+ />
283
+ {/if}
284
+ </div>
285
+ {/if}
286
+ {/each}
287
+ {/if}
286
288
  {#if editable}
287
289
  <div class="add" on:click={open}>
288
290
  <Icon name="Add" size="S" />
@@ -318,7 +320,7 @@
318
320
  <div class="searching">
319
321
  <ProgressCircle size="S" />
320
322
  </div>
321
- {:else if searchResults?.length}
323
+ {:else if Array.isArray(searchResults) && searchResults.length}
322
324
  <div class="results">
323
325
  {#each searchResults as row, idx}
324
326
  <div