From b2e8522b7b3ca6ac7bd66e01d3a37dc4531b1f2e Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Thu, 24 Nov 2022 18:24:38 +0000 Subject: [PATCH] Don't add numbering to primary key --- .../settings/controls/FilterEditor/FilterEditor.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/components/design/settings/controls/FilterEditor/FilterEditor.svelte b/packages/builder/src/components/design/settings/controls/FilterEditor/FilterEditor.svelte index ea54afc0ee..05ee0adda8 100644 --- a/packages/builder/src/components/design/settings/controls/FilterEditor/FilterEditor.svelte +++ b/packages/builder/src/components/design/settings/controls/FilterEditor/FilterEditor.svelte @@ -28,7 +28,11 @@ function addNumbering(filters) { let count = 1 for (let value of filters) { - if (value.field && value.field?.match(QUERY_START_REGEX) == null) { + if ( + value.field && + value.field?.match(QUERY_START_REGEX) == null && + value.field !== "_id" + ) { value.field = `${count++}:${value.field}` } }