From a2a434bf174f6cee1443a4edf77016d9c035f1f5 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Wed, 21 Aug 2019 13:47:21 +0200 Subject: [PATCH] Fix reference selector in query buider. --- src/Squidex/app/shared/state/query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Squidex/app/shared/state/query.ts b/src/Squidex/app/shared/state/query.ts index 7bd2f346a..b5dac033b 100644 --- a/src/Squidex/app/shared/state/query.ts +++ b/src/Squidex/app/shared/state/query.ts @@ -200,7 +200,7 @@ export function queryModelFromSchema(schema: SchemaDetailsDto, languages: Langua } else if (field.properties.fieldType === 'DateTime') { type = TypeDateTime; } else if (field.properties.fieldType === 'References') { - const extra = { schemaId: field.properties['schemaId'] }; + const extra = field.properties['schemaId']; type = { ...TypeReference, extra }; }