From 0ff28d2626544c97bf836b6749cafd49980331b4 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 12 Jun 2023 16:10:55 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=20Json=20attr=20fiel?= =?UTF-8?q?d=20=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FormFields/JSONManyToManySelect/const.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/FormFields/JSONManyToManySelect/const.js b/src/components/FormFields/JSONManyToManySelect/const.js index d70bebd11..498c850c7 100644 --- a/src/components/FormFields/JSONManyToManySelect/const.js +++ b/src/components/FormFields/JSONManyToManySelect/const.js @@ -5,8 +5,8 @@ export const typeMatchMapper = { str: strMatchValues, bool: ['exact', 'not'], m2m: ['m2m'], - ip: strMatchValues + ['ip_in'], - int: strMatchValues + ['gte', 'lte'], + ip: [...strMatchValues, 'ip_in'], + int: [...strMatchValues, 'gte', 'lte'], select: ['in'] }