Skip to content

Commit

Permalink
Cleanup SideBar provide
Browse files Browse the repository at this point in the history
  • Loading branch information
dschmidt committed Dec 8, 2021
1 parent 8a42a7d commit 93855d4
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions packages/web-app-files/src/components/SideBar/SideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ import { DavProperties } from 'web-pkg/src/constants'
import MixinRoutes from '../../mixins/routes'
import { buildResource } from '../../helpers/resources'
import { isTrashbinRoute } from '../../helpers/route'
import { computed } from '@vue/composition-api'
import FileInfo from './FileInfo.vue'
let visibilityObserver
Expand All @@ -104,14 +104,9 @@ export default {
mixins: [MixinRoutes],
provide() {
const displayedItem = {}
Object.defineProperty(displayedItem, 'value', {
enumerable: true,
get: () => this.selectedFile
})
return { displayedItem }
return {
displayedItem: computed(() => this.selectedFile)
}
},
data() {
Expand Down

0 comments on commit 93855d4

Please sign in to comment.