Skip to content

Commit

Permalink
Fix ESLint error
Browse files Browse the repository at this point in the history
  • Loading branch information
mzur committed Oct 28, 2020
1 parent 493e5df commit fd979e3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/public/assets/scripts/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"/assets/scripts/main.js": "/assets/scripts/main.js?id=c3de02be036e7a552567",
"/assets/scripts/main.js": "/assets/scripts/main.js?id=e88bce65c4a3e25caa2c",
"/assets/styles/main.css": "/assets/styles/main.css?id=e0eebb85d62abf60780d"
}
11 changes: 7 additions & 4 deletions src/resources/assets/js/form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ export default {
let volumeId = this.knowledgeTransferVolume.id;
if (!this.knowledgeTransferLabelCache.hasOwnProperty(volumeId)) {
this.fetchLabels(volumeId)
.then((response) => {
this.knowledgeTransferLabelCache[volumeId] = response.body;
}, handleErrorResponse);
this.fetchKnowledgeTransferLabels(volumeId);
}
return this.knowledgeTransferLabelCache[volumeId];
Expand Down Expand Up @@ -128,6 +125,12 @@ export default {
return promise;
},
fetchKnowledgeTransferLabels(id) {
this.fetchLabels(id)
.then((response) => {
this.knowledgeTransferLabelCache[id] = response.body;
}, handleErrorResponse);
},
handleSelectedKnowledgeTransferLabel(label) {
if (this.selectedKnowledgeTransferLabels.indexOf(label) === -1) {
this.selectedKnowledgeTransferLabels.push(label);
Expand Down

0 comments on commit fd979e3

Please sign in to comment.