You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2020/05/21 02:47:07 UTC

[incubator-apisix-dashboard] branch next updated: fix: remove list item not work (#202)

This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-apisix-dashboard.git


The following commit(s) were added to refs/heads/next by this push:
     new 3b83440   fix: remove list item not work (#202)
3b83440 is described below

commit 3b8344040fb11ac40e098c2393d246436bbc9b6a
Author: litesun <31...@users.noreply.github.com>
AuthorDate: Thu May 21 10:46:59 2020 +0800

     fix: remove list item not work (#202)
    
    * feat: limit upload file
    
    * feat: intercept default upload api request
    
    * feat: limit upload file type
    
    * fix: show file when parse SSL file  fail
    
    * feat: add search feature
    
    * feat: format code
    
    * fix: remove list item not work
    
    * feat: remove relatedRouting
---
 src/pages/ssl/List.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/pages/ssl/List.tsx b/src/pages/ssl/List.tsx
index 43b369a..5815860 100644
--- a/src/pages/ssl/List.tsx
+++ b/src/pages/ssl/List.tsx
@@ -33,7 +33,9 @@ const List: React.FC = () => {
             message: formatMessage({ id: 'component.ssl.removeSSLSuccess' }),
           });
           /* eslint-disable no-unused-expressions */
-          tableRef.current?.reload();
+          // NOTE: tricky way
+          setList([]);
+          requestAnimationFrame(() => tableRef.current?.reload());
         }),
     });
   };