From 05f302b1db030bb15b1b8acead95557e598c4e48 Mon Sep 17 00:00:00 2001 From: MuhammadUmer44 Date: Wed, 11 Sep 2024 21:03:12 +0500 Subject: [PATCH] fix(blue-print): not selected labels displayed in indexes --- .../ModalsContainer/BlueprintModal/Body/Editor/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx b/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx index 22b6b2f64..c1847ec03 100644 --- a/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx +++ b/src/components/ModalsContainer/BlueprintModal/Body/Editor/index.tsx @@ -255,7 +255,7 @@ export const Editor = ({ const attributesValue = watch('attributes') const attributes: Attribute[] = useMemo( - () => (isAttributeArray(attributesValue) ? attributesValue : []), + () => (isAttributeArray(attributesValue) ? attributesValue.filter((attr) => attr.key.trim() !== '') : []), [attributesValue], )