fix/catalogo-agente-aduanal-doble-click
This commit is contained in:
@@ -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"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user