Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

check if not empty array

Vincenta0f1849d8d00
diff --git a/ui/component/or-attribute-card/src/index.ts b/ui/component/or-attribute-card/src/index.ts
index 5c023f276..f6a16b949 100644
--- a/ui/component/or-attribute-card/src/index.ts
+++ b/ui/component/or-attribute-card/src/index.ts
@@ -273,7 +273,7 @@ export class OrAttributeCard extends LitElement {
recursive: false
});
- if (response.status !== 200 || !response.data) {
+ if (response.status !== 200 || !response.data || !response.data.length) {
return {};
}