You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, once again thanks for your great work. I use this lib in our 3D Printer UI already for 3 years and love it. I'm used to do nasty things with her e.g.:
// id = undefined - all printers// id = string - specific printer// id = string[] - specific printersfunctiongetPrinterState(id){returnwretcher(api).query(id&&{ id }).get().json(res=>typeofid===string ? res[id] : res)}
But, as my overly attentive colleague pointed out, when you run .query(false) wretcher adds '?' or '&', which might confuse the api server.
I propose to add simple check to appendQueryParams on line 325, something like:
Hi, once again thanks for your great work. I use this lib in our 3D Printer UI already for 3 years and love it. I'm used to do nasty things with her e.g.:
But, as my overly attentive colleague pointed out, when you run
.query(false)
wretcher adds '?' or '&', which might confuse the api server.I propose to add simple check to
appendQueryParams
on line 325, something like:The text was updated successfully, but these errors were encountered: