diff --git a/packages/plugin-pages/src/actions/views_v2:getInfo.ts b/packages/plugin-pages/src/actions/views_v2:getInfo.ts index dc72f0179..ecf3ca412 100644 --- a/packages/plugin-pages/src/actions/views_v2:getInfo.ts +++ b/packages/plugin-pages/src/actions/views_v2:getInfo.ts @@ -383,6 +383,15 @@ export const getInfo = async (ctx: actions.Context, next) => { }); data.groupField = groupField; } + + data.actions = data.actions.map(action => { + if (action.type === 'filter') { + if (!action.fields) { + action.fields = data.fields.filter(({filterable}) => filterable); + } + } + return action; + }); ctx.body = data; await next();