@terrestris/shogun-admin 18.1.0-next.4 → 18.1.0-next.5

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.
@@ -151,7 +151,7 @@ export var GeneralEntityForm = function (_a) {
151
151
  * @param fieldCfg The FieldConfig
152
152
  * @returns An antd FormItem
153
153
  */
154
- var createFormItem = function (fieldCfg) {
154
+ var createFormItem = function (fieldCfg, index) {
155
155
  var _a;
156
156
  var copyFieldCfg = _cloneDeep(fieldCfg);
157
157
  copyFieldCfg.label = TranslationUtil.getTranslationFromConfig(fieldCfg.label, i18n);
@@ -179,7 +179,7 @@ export var GeneralEntityForm = function (_a) {
179
179
  if (copyFieldCfg.component === 'Switch') {
180
180
  formItemProps.valuePropName = 'checked';
181
181
  }
182
- var formKey = "".concat(generalEntityRootContext === null || generalEntityRootContext === void 0 ? void 0 : generalEntityRootContext.entityType, "-").concat(form.getFieldValue('id'), "-").concat(copyFieldCfg.dataField || ((_a = copyFieldCfg.component) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()));
182
+ var formKey = "".concat(generalEntityRootContext === null || generalEntityRootContext === void 0 ? void 0 : generalEntityRootContext.entityType, "-").concat(form.getFieldValue('id'), "-").concat(copyFieldCfg.dataField || ((_a = copyFieldCfg.component) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()), "-").concat(index);
183
183
  if (copyFieldCfg.component) {
184
184
  formKey += "-".concat(copyFieldCfg.component.toLocaleLowerCase());
185
185
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@terrestris/shogun-admin",
3
- "version": "18.1.0-next.4",
3
+ "version": "18.1.0-next.5",
4
4
  "description": "The admin UI for the SHOGun Web-mapping backend.",
5
5
  "keywords": [
6
6
  "SHOGun",