From 1931d55d6627b0287a6b254d36bdb4eafdb6aabf Mon Sep 17 00:00:00 2001 From: Adeel Nawaz Date: Thu, 24 Oct 2024 22:57:12 +0500 Subject: [PATCH] use optional chaining operator --- src/pages/Search/SavedSearchRenamePage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Search/SavedSearchRenamePage.tsx b/src/pages/Search/SavedSearchRenamePage.tsx index 7b2cdbc620b1..0d9399965757 100644 --- a/src/pages/Search/SavedSearchRenamePage.tsx +++ b/src/pages/Search/SavedSearchRenamePage.tsx @@ -28,7 +28,7 @@ function SavedSearchRenamePage({route}: {route: {params: {q: string; name: strin Navigation.navigate( ROUTES.SEARCH_CENTRAL_PANE.getRoute({ query: q, - name: newName.trim(), + name: newName?.trim(), }), ); };