Skip to content
Snippets Groups Projects
Commit ad3e47f0 authored by David Bühler's avatar David Bühler Committed by Valentin Perrelle
Browse files

[Ivette] Eva domain states: fixes the request call when no marker is selected.

parent 5004f921
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,8 @@ export function EvaStates(): JSX.Element {
const [stateAfter, setStateAfter] = React.useState("");
const [filter, setFilter] = useGlobalState(globalFilter);
const states = States.useRequest(Eva.getStates, [marker, filter]);
const requestArg = marker ? [marker, filter] : undefined;
const states = States.useRequest(Eva.getStates, requestArg);
React.useEffect(() => {
if (states && states.length > 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment