浏览代码

fix: advanced filter expression not shown on the data page (#839)

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 2 周之前
父节点
当前提交
f04df73525

+ 0 - 1
client/src/components/advancedSearch/Dialog.tsx

@@ -190,7 +190,6 @@ const useStyles = makeStyles((theme: Theme) => ({
   },
   applyBtn: {
     backgroundColor: theme.palette.primary.main,
-    color: theme.palette.text.primary,
   },
   copyButton: {},
   expResult: {

+ 1 - 0
client/src/pages/databases/collections/data/CollectionData.tsx

@@ -96,6 +96,7 @@ const CollectionData = (props: CollectionDataProps) => {
   const handleFilterSubmit = async (expression: string) => {
     // update UI expression
     setQueryState({ ...queryState, expr: expression });
+    setExprInput(expression);
   };
   const handlePageChange = async (e: any, page: number) => {
     // do the query