Skip to content

Commit 2f5a04c

Browse files
authored
short-the-code (joomla#39835)
1 parent 39ad0ac commit 2f5a04c

File tree

1 file changed

+1
-2
lines changed
  • administrator/components/com_media/resources/scripts/components/browser

1 file changed

+1
-2
lines changed

administrator/components/com_media/resources/scripts/components/browser/browser.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ export default {
154154
return this.$store.state.search !== '' && this.localItems.length === 0;
155155
},
156156
isEmpty() {
157-
return ![...this.$store.getters.getSelectedDirectoryDirectories, ...this.$store.getters.getSelectedDirectoryFiles].length
158-
&& !this.$store.state.isLoading;
157+
return !this.localItems.length && !this.$store.state.isLoading;
159158
},
160159
/* The styles for the media-browser element */
161160
listView() {

0 commit comments

Comments
 (0)