diff --git a/frontend/src/routes/dashboard/customs_brokers/+page.svelte b/frontend/src/routes/dashboard/customs_brokers/+page.svelte index aabebb79..a3516841 100644 --- a/frontend/src/routes/dashboard/customs_brokers/+page.svelte +++ b/frontend/src/routes/dashboard/customs_brokers/+page.svelte @@ -115,6 +115,10 @@ function selectItem(item: CustomsBroker) { selectedItem = item; } + function handleRowDoubleClick(item: CustomsBroker) { + selectedItem = item; + goto(`/dashboard/customs_brokers/edit/${item.broker_key}`); + } function handleEdit() { if (selectedItem) goto(`/dashboard/customs_brokers/edit/${selectedItem.broker_key}`); } @@ -265,6 +269,7 @@ data={paginatedItems} columns={brokerColumns} onRowClick={selectItem} + onRowDoubleClick={handleRowDoubleClick} selectedId={selectedItem?.broker_key} idField="broker_key" />