fix structure

This commit is contained in:
Philipp Kühn
2020-09-09 21:12:25 +02:00
parent 25864fba11
commit 5aeb7bf4ec
4 changed files with 10 additions and 32 deletions

View File

@@ -4,7 +4,7 @@ import { Extensions } from '../types'
export default function getMarksFromExtensions(extensions: Extensions): any {
return collect(extensions)
.where('extensionType', 'mark')
.mapWithKeys((extension: Mark) => [extension.name, extension.schema()])
.where('type', 'mark')
.mapWithKeys((extension: Mark) => [extension.config.name, extension.config.schema])
.all()
}