@@ -100,8 +100,7 @@ export function PartsQueueListComponent({bodyshop}) {
|
||||
};
|
||||
|
||||
const handleOnRowClick = (record) => {
|
||||
if (record) {
|
||||
if (record.id) {
|
||||
if (record?.id) {
|
||||
history({
|
||||
search: queryString.stringify({
|
||||
...searchParams,
|
||||
@@ -109,7 +108,6 @@ export function PartsQueueListComponent({bodyshop}) {
|
||||
}),
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
const columns = [
|
||||
{
|
||||
@@ -354,7 +352,15 @@ export function PartsQueueListComponent({bodyshop}) {
|
||||
},
|
||||
selectedRowKeys: [selected],
|
||||
type: "radio",
|
||||
}}/>
|
||||
}}
|
||||
onRow={(record, rowIndex) => {
|
||||
return {
|
||||
onClick: (event) => {
|
||||
handleOnRowClick(record);
|
||||
},
|
||||
};
|
||||
}}
|
||||
/>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user