From 747e743df8eae47d9296a2781fb137352801dafe Mon Sep 17 00:00:00 2001 From: chenos Date: Fri, 8 Jan 2021 00:11:50 +0800 Subject: [PATCH] fix: use $isFalsy to filter developerMode --- packages/app/src/api/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app/src/api/index.ts b/packages/app/src/api/index.ts index a746daf7c..c7d26d560 100644 --- a/packages/app/src/api/index.ts +++ b/packages/app/src/api/index.ts @@ -67,7 +67,7 @@ api.resourcer.use(async (ctx: actions.Context, next) => { // ctx.state.developerMode = {[Op.not]: null}; ctx.state.developerMode = false; if (table && table.hasField('developerMode') && ctx.state.developerMode === false) { - ctx.action.setParam('filter.developerMode', ctx.state.developerMode); + ctx.action.setParam('filter.developerMode.$isFalsy', true); } if (table && ['get', 'list'].includes(actionName)) { const except = fields.except || [];