From bb29fb86ac1ca687a6bb8cd9203d914f1b0d923f Mon Sep 17 00:00:00 2001
From: Sjoerd <svink@graphpolaris.com>
Date: Tue, 5 Nov 2024 08:45:17 +0000
Subject: [PATCH] fix: array data icon for qb and schema

---
 libs/shared/lib/components/DataTypeIcon/index.tsx | 1 +
 libs/shared/lib/schema/model/FromBackend.ts       | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/libs/shared/lib/components/DataTypeIcon/index.tsx b/libs/shared/lib/components/DataTypeIcon/index.tsx
index 11932ec5b..6b5bdc26e 100644
--- a/libs/shared/lib/components/DataTypeIcon/index.tsx
+++ b/libs/shared/lib/components/DataTypeIcon/index.tsx
@@ -13,6 +13,7 @@ const IconMap: Record<SchemaAttributeTypes, string> = {
   duration: 'icon-[carbon--calendar]',
   number: 'icon-[carbon--string-integer]',
   location: 'icon-[carbon--location]',
+  array: 'icon-[ic--baseline-data-array]',
 };
 
 function getDataTypeIcon(data_type?: SchemaAttributeTypes): string {
diff --git a/libs/shared/lib/schema/model/FromBackend.ts b/libs/shared/lib/schema/model/FromBackend.ts
index de80178cd..f4c091fb2 100644
--- a/libs/shared/lib/schema/model/FromBackend.ts
+++ b/libs/shared/lib/schema/model/FromBackend.ts
@@ -29,7 +29,8 @@ export type SchemaAttributeTypes =
   | 'datetime'
   | 'duration'
   | 'number'
-  | 'location';
+  | 'location'
+  | 'array';
 
 export type DimensionType = 'categorical' | 'numerical' | 'temporal' | 'spatial';
 
-- 
GitLab