fix bug in demo component, fix #39

This commit is contained in:
Philipp Kühn
2020-11-05 22:04:18 +01:00
parent aec6872017
commit a3a8183088

View File

@@ -106,7 +106,7 @@ export default {
mounted() {
this.files = collect(require.context('~/demos/', true, /.+\..+$/).keys())
.filter(path => path.startsWith(`./${this.name}`))
.filter(path => path.startsWith(`./${this.name}/`))
.map(path => path.replace('./', ''))
.map(path => {
const extension = path.split('.').pop()