Minor fix to ensure that only dsplus sources can filter by _id

This commit is contained in:
Dean 2024-07-18 14:05:57 +01:00
parent 94c7f50f6e
commit d216ba57f4
1 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@
$: dataProviderId = dataProvider?.id
$: datasource = dataProvider?.datasource
$: isDSPlus = ["table", "link", "viewV2"].includes(datasource?.type)
$: addExtension = getAction(
dataProviderId,
ActionTypes.AddDataProviderQueryExtension
@ -72,7 +73,7 @@
return Object.values(clonedSchema || {})
.filter(field => !Constants.BannedSearchTypes.includes(field.type))
.concat([{ name: "_id", type: "string" }])
.concat(isDSPlus ? [{ name: "_id", type: "string" }] : [])
}
const openEditor = () => {