1
0
Fork 0
mirror of synced 2024-10-03 19:43:32 +13:00

Changing logic.

This commit is contained in:
mike12345567 2024-04-09 10:30:23 +01:00
parent 5cd82597ec
commit ef46afe530

View file

@ -20,7 +20,7 @@ export function getFields(fields, { allowLinks } = { allowLinks: true }) {
let filteredFields = fields.filter(
field => !BannedSearchTypes.includes(field.type)
)
if (!allowLinks) {
if (allowLinks) {
const linkFields = fields.filter(field => field.type === "link")
for (let linkField of linkFields) {
// only allow one depth of SQL relationship filtering