diff --git a/webapp/src/components/labThingsComponents/actionButton.vue b/webapp/src/components/labThingsComponents/actionButton.vue index e15d57dc..b8ec4969 100644 --- a/webapp/src/components/labThingsComponents/actionButton.vue +++ b/webapp/src/components/labThingsComponents/actionButton.vue @@ -190,7 +190,7 @@ export default { * */ async checkExistingTasks() { - let response = await this.findOngoingAction(this.thing, this.action); + let response = await this.findOngoingActions(this.thing, this.action); // Exit if response is null, due to an error. if (response == null) return; // Check for a task that is ongoing. diff --git a/webapp/src/mixins/labThingsMixins.js b/webapp/src/mixins/labThingsMixins.js index 0947deb1..41f0bad1 100644 --- a/webapp/src/mixins/labThingsMixins.js +++ b/webapp/src/mixins/labThingsMixins.js @@ -117,7 +117,7 @@ export default { terminateAction(taskUrl) { axios.delete(taskUrl, { baseURL: this.$store.getters.baseUri }); }, - async findOngoingAction(thing, action) { + async findOngoingActions(thing, action) { let url = this.thingActionUrl(thing, action); try { return await axios.get(url);