From 0dbea89d2997aa7a11bae457c426db318ceeffb2 Mon Sep 17 00:00:00 2001 From: Simone Taeggi Date: Tue, 9 May 2023 14:23:37 +0200 Subject: [PATCH] add a comment to specify the collection names are not all normalized --- .../admin/src/components/FormModal/forms/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/content-type-builder/admin/src/components/FormModal/forms/index.js b/packages/core/content-type-builder/admin/src/components/FormModal/forms/index.js index 6be4cbeccc..8809e34c50 100644 --- a/packages/core/content-type-builder/admin/src/components/FormModal/forms/index.js +++ b/packages/core/content-type-builder/admin/src/components/FormModal/forms/index.js @@ -187,6 +187,7 @@ const forms = { }) : pluralNames; + // return the array of collection names not all normalized const collectionNames = Object.values(contentTypes).map((contentType) => { return get(contentType, ['schema', 'collectionName'], ''); });