mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 05:10:45 +00:00
fixed bug where primarykey wasnt being used properly
This commit is contained in:
@ -549,9 +549,9 @@ function RecordQuery({table, launchProcess}: Props): JSX.Element
|
||||
selectionModel.forEach((value: GridRowId, index: number) =>
|
||||
{
|
||||
let valueToPush = value as string;
|
||||
if(table.primaryKeyField !== "id")
|
||||
if(tableMetaData.primaryKeyField !== "id")
|
||||
{
|
||||
valueToPush = latestQueryResults[index].values.get("number")
|
||||
valueToPush = latestQueryResults[index].values.get(tableMetaData.primaryKeyField);
|
||||
}
|
||||
newSelectedIds.push(valueToPush as string);
|
||||
});
|
||||
|
Reference in New Issue
Block a user