Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
export let data: PageData;
export let showRowCreateSheet: {
show: boolean;
row: Models.Row | null;
row: Partial<Models.Row> | null;
};

$: rows = writable(data.rows);
Expand Down Expand Up @@ -543,7 +543,13 @@
}

if (action === 'duplicate-row') {
showRowCreateSheet.row = row;
/**
* remove dates because
* console can override timestamps!
*/
const { $createdAt, $updatedAt, ...rowWithoutDates } = row;

showRowCreateSheet.row = rowWithoutDates;
showRowCreateSheet.show = true;
}

Expand Down