1
0
Fork 0
mirror of synced 2024-08-07 22:28:15 +12:00

small change to ensure that name of datasources is available in dropdown to prevent dupes

This commit is contained in:
Martin McKeaveney 2024-06-11 14:38:56 +01:00
parent 115737c46c
commit ae74c2498c
2 changed files with 3 additions and 2 deletions

View file

@ -28,8 +28,8 @@
tabindex="0"
on:click={() => onSelect(data)}
>
<span class="spectrum-Menu-itemLabel">
{data.label}
<span class="spectum-Menu-itemLabel">
{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,