This commit is contained in:
Oliver Walters 2026-07-01 13:40:51 +00:00
parent 74e50e2deb
commit 63f04b5d5c
2 changed files with 2 additions and 5 deletions

View File

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

View File

@ -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';