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