ui_migration fix(deps): --preliminary-- added stronger type checking on things properties
This commit is contained in:
parent
f4a10ec897
commit
5bbe88c9f7
6 changed files with 75 additions and 40 deletions
|
|
@ -59,7 +59,7 @@ export default {
|
|||
// `false` fails because axios somehow eats it!
|
||||
// Other values should not be stringified or pydantic
|
||||
// can't parse them.
|
||||
if ((value === false) | (value === true)) {
|
||||
if ((value === false) || (value === true)) {
|
||||
value = JSON.stringify(value);
|
||||
}
|
||||
await axios.put(url, value);
|
||||
|
|
@ -91,7 +91,7 @@ export default {
|
|||
response = await axios.get(taskUrl, { baseURL: this.$store.getters.baseUri });
|
||||
const result = response.data.status;
|
||||
|
||||
if ((result == "running") | (result == "pending")) {
|
||||
if ((result === "running") || (result === "pending")) {
|
||||
ongoingMethod?.(response);
|
||||
this.pollTimers[taskUrl] = setTimeout(() => {
|
||||
this.pollUntilComplete(taskUrl, ongoingMethod, finalMethod, interval);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue