Browse Source

Fix `object` fields with sub-properties missing from
`LabelDictionary` cache

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>

Mihaela Balutoiu 1 month ago
parent
commit
6ce897c387
1 changed files with 10 additions and 0 deletions
  1. 10 0
      src/plugins/default/ConnectionSchemaPlugin.ts

+ 10 - 0
src/plugins/default/ConnectionSchemaPlugin.ts

@@ -52,9 +52,19 @@ export const defaultSchemaToFields = (
       properties.properties &&
       Object.keys(properties.properties).length
     ) {
+      LabelDictionary.pushToCache(
+        {
+          name: fieldName,
+          title: properties.title,
+          description: properties.description,
+        },
+        dictionaryKey || "",
+      );
       return {
         name: fieldName,
         type: "object",
+        title: properties.title,
+        description: properties.description,
         properties: defaultSchemaToFields(properties, null, dictionaryKey),
       };
     }