Handle req log filter I/O when no project is set

This commit is contained in:
David Stotijn
2020-12-29 20:46:42 +01:00
parent 8c2efdb285
commit ad3fa7d379
2 changed files with 18 additions and 9 deletions

View File

@ -89,7 +89,7 @@ function Search(): JSX.Element {
FILTER,
{
onCompleted: (data) => {
setSearchExpr(data.httpRequestLogFilter.searchExpression || "");
setSearchExpr(data.httpRequestLogFilter?.searchExpression || "");
},
}
);
@ -108,6 +108,7 @@ function Search(): JSX.Element {
},
});
},
onError: () => {},
});
const [