fixes
This commit is contained in:
parent
74e50e2deb
commit
63f04b5d5c
|
|
@ -741,8 +741,6 @@ export function InvenTreeTableInternal<T extends Record<string, any>>({
|
|||
const accessor = tableProps.modelField ?? 'pk';
|
||||
const pk = resolveItem(record, accessor);
|
||||
|
||||
console.log('row click:', tableProps.modelType, accessor, '->', pk);
|
||||
|
||||
if (pk) {
|
||||
cancelEvent(event);
|
||||
// If a model type is provided, navigate to the detail view for that model
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import { cancelEvent } from '@lib/functions/Events';
|
||||
import { eventModified } from '@lib/functions/Navigation';
|
||||
import { getDetailUrl, navigateToLink } from '@lib/functions/Navigation';
|
||||
import useTable from '@lib/hooks/UseTable';
|
||||
import {
|
||||
ApiEndpoints,
|
||||
|
|
@ -8,9 +9,7 @@ import {
|
|||
UserRoles,
|
||||
YesNoButton,
|
||||
apiUrl,
|
||||
formatDecimal,
|
||||
getDetailUrl,
|
||||
navigateToLink
|
||||
formatDecimal
|
||||
} from '@lib/index';
|
||||
import type { TableFilter } from '@lib/types/Filters';
|
||||
import type { TableColumn } from '@lib/types/Tables';
|
||||
|
|
|
|||
Loading…
Reference in New Issue