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

yjc pushed a commit to branch home-screen-mvp
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git

commit 65b24f11e119e7a86f03f0a5019d9eac7eeef15d
Author: Phillip Kelley-Dotson <[email protected]>
AuthorDate: Fri Oct 23 11:54:57 2020 -0700

    Update superset-frontend/src/views/CRUD/welcome/ActivityTable.tsx
    
    Co-authored-by: Evan Rusackas <[email protected]>
---
 superset-frontend/src/views/CRUD/welcome/ActivityTable.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset-frontend/src/views/CRUD/welcome/ActivityTable.tsx 
b/superset-frontend/src/views/CRUD/welcome/ActivityTable.tsx
index 63a1455..ed963f6 100644
--- a/superset-frontend/src/views/CRUD/welcome/ActivityTable.tsx
+++ b/superset-frontend/src/views/CRUD/welcome/ActivityTable.tsx
@@ -99,7 +99,7 @@ export default function ActivityTable({ user }: 
ActivityProps) {
 
   const getIconName = (e: MapProps) => {
     if (e.sql) return 'sql';
-    if (e.url?.indexOf('dashboard') !== -1) {
+    if (e.url?.includes('dashboard')) {
       return 'nav-dashboard';
     }
     if (e.url?.indexOf('explore') !== -1) {

Reply via email to