console: added cloned row values to payload if they exist

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6447
GitOrigin-RevId: 23e7dd1e5a4cd3c79835f750fff1404fdf134da2
This commit is contained in:
Erik Magnusson 2022-10-20 16:35:39 +02:00 committed by hasura-bot
parent be9c3e5a66
commit 631f3994c2

View File

@ -130,7 +130,13 @@ export const TableInsertItemContainer = (
return acc;
}, {});
dispatch(insertItem(tableName, inputValues, isMigration)).then(() => {
dispatch(
insertItem(
tableName,
clone ? { ...clone, ...inputValues } : inputValues,
isMigration
)
).then(() => {
nextInsert();
});
};