Commit 25dbd39d by t0ng7u

馃悰 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[]
parent 31d5eb87
......@@ -245,7 +245,7 @@ const ModelsActions = ({
conflicts={conflicts}
onSubmit={async (payload) => {
return await applyUpstreamOverwrite?.({
...payload,
overwrite: payload,
locale: syncLocale,
});
}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment