Merge pull request #13915 from Budibase/name-datasources

small change to ensure that name of datasources is available in dropd…
This commit is contained in:
Martin McKeaveney 2024-06-11 16:09:19 +01:00 committed by GitHub
commit 5cd9eb131f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,7 @@
on:click={() => onSelect(data)}
>
<span class="spectrum-Menu-itemLabel">
{data.label}
{data.datasource?.name ? `${data.datasource.name} - ` : ""}{data.label}
</span>
<svg
class="spectrum-Icon spectrum-UIIcon-Checkmark100 spectrum-Menu-checkmark spectrum-Menu-itemIcon"

View File

@ -55,6 +55,7 @@
label: m.name,
tableId: m._id,
type: "table",
datasource: $datasources.list.find(ds => ds._id === m.sourceId || m.datasourceId),
}))
$: viewsV1 = $viewsStore.list.map(view => ({
...view,