runJS error when accessing ctx.resource.filterGroups in a JS action of a table

when I try to console.log(ctx.resource.filterGroups), it shows an empty Map. but on the browser console, it’s a Map with the filters the scope the table. even after I run const filterGroups = await ctx.getVar(‘ctx.resource.filterGroups’);
version: v2.0.61


Please refer to

const filter = ctx.resource?.getFilter?.();
console.log('table filter:', filter);
1 Like