@rchemist/listgrid 0.2.10 → 0.2.11

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.
@@ -141,7 +141,11 @@ export const XrefAvailableDateMappingView = ({ entityForm, ...props }) => {
141
141
  return { entityForm: form.withErrors(fieldErrors), errors: ['입력 값이 올바르지 않습니다.'] };
142
142
  }
143
143
  const formData = await form.getSubmitFormData();
144
- const target = formData.data['mapping'];
144
+ // processManyToOneField stores the ManyToOneField value as `${name}Id` on formData.data,
145
+ // so the inner 'mapping' field is read as 'mappingId'. Reading 'mapping' here would yield
146
+ // undefined and cause the outer view to query the backend with an empty `IN []` filter,
147
+ // which the backend treats as "no filter" and returns the entire list.
148
+ const target = formData.data['mappingId'];
145
149
  if (!isEmpty(mappingValue.mapped)) {
146
150
  let duplicated = false;
147
151
  for (const item of mappingValue.mapped) {
@@ -119,7 +119,11 @@ export const XrefPreferMappingView = ({ entityForm, ...props }) => {
119
119
  return { entityForm: form.withErrors(fieldErrors), errors: ['입력 값이 올바르지 않습니다.'] };
120
120
  }
121
121
  const formData = await form.getSubmitFormData();
122
- const target = formData.data['mapping'];
122
+ // processManyToOneField stores the ManyToOneField value as `${name}Id` on formData.data,
123
+ // so the inner 'mapping' field is read as 'mappingId'. Reading 'mapping' here would yield
124
+ // undefined and cause the outer view to query the backend with an empty `IN []` filter,
125
+ // which the backend treats as "no filter" and returns the entire list.
126
+ const target = formData.data['mappingId'];
123
127
  if (!isEmpty(mappingValue.mapped)) {
124
128
  let duplicated = false;
125
129
  for (const item of mappingValue.mapped) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rchemist/listgrid",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "private": false,
5
5
  "description": "Framework-free React CRUD UI engine — primitive-based design system, data-attr theming, and a full list/form renderer for RCM-framework-style entity backends.",
6
6
  "keywords": [