Skip to content

Commit

Permalink
More vue.set
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Apr 26, 2024
1 parent 57d93c1 commit 0df7f1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions client/src/components/Workflow/Run/WorkflowRunFormSimple.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ import { allowCachedJobs } from "components/Tool/utilities";
import { isWorkflowInput } from "components/Workflow/constants";
import { storeToRefs } from "pinia";
import { errorMessageAsString } from "utils/simple-error";
import Vue from "vue";
import { useConfig } from "@/composables/config";
import { useUserStore } from "@/stores/userStore";
Expand Down Expand Up @@ -147,7 +146,7 @@ export default {
methods: {
onValidation(validation) {
if (validation) {
Vue.set(this.stepValidations, validation[0], validation[1]);
this.stepValidations[validation[0]] = validation[1];
} else {
this.stepValidations = {};
}
Expand Down
6 changes: 3 additions & 3 deletions client/src/composables/datasetPathDestination.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { computed, ref, set } from "vue";
import { computed, ref } from "vue";

import { type DatasetExtraFiles, getCompositeDatasetLink } from "@/api/datasets";
import { useDatasetExtraFilesStore } from "@/stores/datasetExtraFilesStore";
Expand Down Expand Up @@ -48,7 +48,7 @@ export function useDatasetPathDestination() {
};

if (path === undefined || path === "undefined") {
set(cache.value, dataset_id, { ["undefined"]: pathDestination });
cache.value[dataset_id] = { ["undefined"]: pathDestination };
return pathDestination;
}

Expand All @@ -67,7 +67,7 @@ export function useDatasetPathDestination() {
pathDestination.fileLink = getCompositeDatasetLink(dataset_id, datasetEntry.path);
}

set(cache.value, dataset_id, { [path]: pathDestination });
cache.value[dataset_id] = { [path]: pathDestination };

return pathDestination;
}
Expand Down

0 comments on commit 0df7f1d

Please sign in to comment.