Skip to content

Commit

Permalink
fix(server-routes): filter only dir as collection (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
arashsheyda committed Jul 17, 2023
1 parent 7d766ac commit 4d2f842
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/devtools/client/pages/modules/server-routes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ const filterByCollection = computed(() => {
const collectionNames = filepathParts.slice(filepathParts.indexOf('server') + 1)
if (collectionNames.length > 0 && collectionNames[collectionNames.length - 1].includes('.'))
collectionNames[collectionNames.length - 1] = collectionNames[collectionNames.length - 1].split('.')[0]
if (collectionNames.length > 0 && collectionNames[collectionNames.length - 1] === 'index')
collectionNames.pop()
let parentCollection: ServerRouteInfo | null = null
Expand Down

0 comments on commit 4d2f842

Please sign in to comment.