diff --git a/src/renderer/components/ForeignKeySelect.vue b/src/renderer/components/ForeignKeySelect.vue
index 906308e5..0e126584 100644
--- a/src/renderer/components/ForeignKeySelect.vue
+++ b/src/renderer/components/ForeignKeySelect.vue
@@ -13,7 +13,7 @@
diff --git a/src/renderer/components/WorkspaceTabTable.vue b/src/renderer/components/WorkspaceTabTable.vue
index ee58bca4..57492e91 100644
--- a/src/renderer/components/WorkspaceTabTable.vue
+++ b/src/renderer/components/WorkspaceTabTable.vue
@@ -153,12 +153,14 @@
:element-type="elementType"
@update-field="updateField"
@delete-selected="deleteSelected"
+ @duplicate-row="showFakerModal"
@hard-sort="hardSort"
/>
{
return getWorkspace(props.connection.uid);
@@ -329,13 +332,16 @@ const pageChange = (direction: 'prev' | 'next') => {
page.value--;
};
-const showFakerModal = () => {
+// eslint-disable-next-line @typescript-eslint/no-explicit-any
+const showFakerModal = (row?: any) => {
if (isQuering.value) return;
isFakerModal.value = true;
+ rowToDuplicate.value = row;
};
const hideFakerModal = () => {
isFakerModal.value = false;
+ rowToDuplicate.value = null;
};
const onKey = (e: KeyboardEvent) => {