We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 84b83a0 + f71f5b8 commit 503780bCopy full SHA for 503780b
frontend/src/components/notifications/inboxNav.js
@@ -120,7 +120,14 @@ export const InboxNav = (props) => {
120
return (
121
<ProjectSearchBox
122
className="dib fl mr2"
123
- setQuery={setInboxQuery}
+ setQuery={(value) => {
124
+ if (!value.project) {
125
+ setInboxQuery({ ...inboxQuery, project: undefined });
126
+ return;
127
+ }
128
+ if (value.project && isNaN(value.project)) return;
129
+ setInboxQuery(value);
130
+ }}
131
fullProjectsQuery={inboxQuery}
132
placeholder={msg}
133
searchField={'project'}
0 commit comments