fix/catalogo-agente-aduanal-doble-click

This commit is contained in:
2026-04-29 07:40:28 -06:00
parent 86f529386c
commit 8e3f7d2dd8

View File

@@ -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"
/>