Przeglądaj źródła

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

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

Mihaela Balutoiu 1 miesiąc temu
rodzic
commit
6ce897c387
1 zmienionych plików z 10 dodań i 0 usunięć
  1. 10 0
      src/plugins/default/ConnectionSchemaPlugin.ts

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

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