Skip to content

Commit

Permalink
use optional chaining operator
Browse files Browse the repository at this point in the history
  • Loading branch information
adeel0202 committed Oct 24, 2024
1 parent 1bd2706 commit 1931d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Search/SavedSearchRenamePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
}),
);
};
Expand Down

0 comments on commit 1931d55

Please sign in to comment.