From fb2c27086f570fec60f4d52dcc9ca80e53186293 Mon Sep 17 00:00:00 2001
From: Pitu <heyitspitu@gmail.com>
Date: Thu, 24 Dec 2020 23:45:16 +0900
Subject: Fix ESLint rules once and for all

---
 src/site/components/image-modal/AlbumInfo.vue | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

(limited to 'src/site/components/image-modal/AlbumInfo.vue')

diff --git a/src/site/components/image-modal/AlbumInfo.vue b/src/site/components/image-modal/AlbumInfo.vue
index 17c375a..8aeb02e 100644
--- a/src/site/components/image-modal/AlbumInfo.vue
+++ b/src/site/components/image-modal/AlbumInfo.vue
@@ -24,22 +24,20 @@
 </template>
 
 <script>
-import { mapState } from 'vuex';
-
 export default {
 	name: 'Albuminfo',
 	props: {
 		imageId: {
-			type: Number,
-			default: 0
+			'type': Number,
+			'default': 0
 		},
 		imageAlbums: {
-			type: Array,
-			default: () => []
+			'type': Array,
+			'default': () => []
 		},
 		albums: {
-			type: Array,
-			default: () => []
+			'type': Array,
+			'default': () => []
 		}
 	},
 	data() {
@@ -52,7 +50,7 @@ export default {
 		this.orderedAlbums = this.getOrderedAlbums();
 		// we're sorting here instead of computed because we want sort on creation
 		// then the array's values should be frozen
-		this.selectedOptions = this.imageAlbums.map((e) => e.id);
+		this.selectedOptions = this.imageAlbums.map(e => e.id);
 	},
 	methods: {
 		getOrderedAlbums() {
@@ -70,8 +68,8 @@ export default {
 		},
 		isAlbumSelected(id) {
 			if (!this.showingModalForFile) return false;
-			const found = this.showingModalForFile.albums.find((el) => el.id === id);
-			return !!(found && found.id);
+			const found = this.showingModalForFile.albums.find(el => el.id === id);
+			return Boolean(found && found.id);
 		},
 		async handleClick(id) {
 			// here the album should be already removed from the selected list
-- 
cgit v1.2.3

