Skip to content

Commit

Permalink
fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
NFriedo committed Oct 7, 2024
1 parent 728ee36 commit 87040b5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/components/copy-result-modal/CopyResultModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,7 @@ export default {
let found = false;
items.forEach((item) => {
if (found) return;
if (item.elements.find((e) => types.includes(e.type))) {
found = true;
}
found = item.elements.find((e) => types.includes(e.type));
});
return found;
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/lern-store/LernstoreDetailView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ export default {
this.window.height = window.innerHeight;
},
goBack() {
if (window.history.length > 1 && this.$router) {
this.$router.back();
if (window.history.length > 1) {
this.$router?.back();
} else {
window.close();
}
Expand Down
3 changes: 1 addition & 2 deletions src/store/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { $axios } from "@/utils/api";
const calendarModule = mergeDeep(base, {
actions: {
removeDate: async function (ctx, payload) {
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
(await $axios.delete("/v1/" + baseUrl + "/" + payload.id)).data;
await $axios.delete("/v1/" + baseUrl + "/" + payload.id);
},
},
});
Expand Down

0 comments on commit 87040b5

Please sign in to comment.