소스 검색

🐛 fix(models sync): send correct overwrite payload and drop fallback
Ensure UpstreamConflictModal submits { overwrite: payload, locale } instead of spreading an array into an object
Remove numeric-key fallback from applyUpstreamOverwrite for simpler and explicit logic
Effect: selected fields are now actually updated; success message shows updated model count
Refs: backend SyncUpstreamModels expects overwrite: overwriteField[]

t0ng7u 6 달 전
부모
커밋
fa7ba4a390
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      web/src/components/table/models/ModelsActions.jsx

+ 1 - 1
web/src/components/table/models/ModelsActions.jsx

@@ -245,7 +245,7 @@ const ModelsActions = ({
         conflicts={conflicts}
         conflicts={conflicts}
         onSubmit={async (payload) => {
         onSubmit={async (payload) => {
           return await applyUpstreamOverwrite?.({
           return await applyUpstreamOverwrite?.({
-            ...payload,
+            overwrite: payload,
             locale: syncLocale,
             locale: syncLocale,
           });
           });
         }}
         }}