Skip to content
Snippets Groups Projects
Commit 1d793334 authored by tamaina's avatar tamaina Committed by syuilo
Browse files

Fix #4538 (#4539)

* fix #4538

* clean up

* fix

* fix
parent d002f671
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,6 @@
<script lang="ts">
import Vue from 'vue';
import anime from 'animejs';
import i18n from '../../../i18n';
import {
faFile,
faFileAlt,
......@@ -104,7 +103,11 @@ export default Vue.extend({
return 'unknown';
},
isThumbnailAvailable(): boolean {
return this.file.thumbnailUrl.endsWith('?thumbnail') ? (this.is === 'image' || this.is === 'video') : true;
return this.file.thumbnailUrl
? this.file.thumbnailUrl.endsWith('?thumbnail')
? (this.is === 'image' || this.is === 'video')
: true
: false;
},
background(): string {
return this.file.properties.avgColor && this.file.properties.avgColor.length == 3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment