Skip to content
Snippets Groups Projects
Commit 3038e089 authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[ivette] fix cancelled request with null parameter

parent 5312f3f8
No related branches found
No related tags found
No related merge requests found
...@@ -178,7 +178,7 @@ export function useRequest(rq: string, params: any, options: any = {}) { ...@@ -178,7 +178,7 @@ export function useRequest(rq: string, params: any, options: any = {}) {
const footprint = project ? JSON.stringify([project, rq, params]) : undefined; const footprint = project ? JSON.stringify([project, rq, params]) : undefined;
async function trigger() { async function trigger() {
if (project && rq && params) { if (project && rq && params !== undefined) {
try { try {
const r = await Server.GET({ endpoint: rq, params }); const r = await Server.GET({ endpoint: rq, params });
setResponse(r); setResponse(r);
......
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