@ronin/compiler 0.17.16 → 0.17.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -444,6 +444,8 @@ var handleSelecting = (models, model, statementParams, single, instructions, opt
|
|
444
444
|
} else {
|
445
445
|
mountedValue = prepareStatementValue(statementParams, value);
|
446
446
|
}
|
447
|
+
const existingField = selectedFields.findIndex((field) => field.slug === key);
|
448
|
+
if (existingField > -1) selectedFields.splice(existingField, 1);
|
447
449
|
selectedFields.push({
|
448
450
|
slug: key,
|
449
451
|
mountingPath: key,
|