diff --git a/packages/ui/src/components/BarDashboard.svelte b/packages/ui/src/components/BarDashboard.svelte index 5083a82fff..3bae2607f3 100644 --- a/packages/ui/src/components/BarDashboard.svelte +++ b/packages/ui/src/components/BarDashboard.svelte @@ -22,7 +22,7 @@
- {#each items as item (item.label)} + {#each items as item (item._id)}
{item.label}
diff --git a/packages/ui/src/types.ts b/packages/ui/src/types.ts index b1b337c5ff..48141a44e5 100644 --- a/packages/ui/src/types.ts +++ b/packages/ui/src/types.ts @@ -205,6 +205,7 @@ export interface PopupOptions { } export interface DashboardItem { + _id: string label: string values: DashboardGroup[] tooltip?: LabelAndProps diff --git a/plugins/task-resources/src/components/Dashboard.svelte b/plugins/task-resources/src/components/Dashboard.svelte index 74a68d62ac..260f797c4f 100644 --- a/plugins/task-resources/src/components/Dashboard.svelte +++ b/plugins/task-resources/src/components/Dashboard.svelte @@ -105,6 +105,7 @@ return [ p._id, { + _id: p._id, label: p.title, values: [ { color: 10, value: 0 }, diff --git a/plugins/task-resources/src/components/StatusTableView.svelte b/plugins/task-resources/src/components/StatusTableView.svelte index 8744c43af0..7bad5df1db 100644 --- a/plugins/task-resources/src/components/StatusTableView.svelte +++ b/plugins/task-resources/src/components/StatusTableView.svelte @@ -14,16 +14,16 @@ // limitations under the License. -->