Minor fix to ensure that only dsplus sources can filter by _id
This commit is contained in:
parent
94c7f50f6e
commit
d216ba57f4
|
@ -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 = () => {
|
||||
|
|
Loading…
Reference in New Issue