Skip to content
This repository was archived by the owner on Apr 21, 2021. It is now read-only.

Commit afe12f1

Browse files
committed
fix attributes
1 parent 08974c6 commit afe12f1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/core/src/ExtensionManager.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,7 @@ export default class ExtensionManager {
250250
return Object.fromEntries(nodeExtensions
251251
.filter(extension => !!getExtensionField(extension, 'addNodeView'))
252252
.map(extension => {
253-
const name = getExtensionField<NodeConfig['name']>(extension, 'name')
254-
const extensionAttributes = this.attributes.filter(attribute => attribute.type === name)
253+
const extensionAttributes = this.attributes.filter(attribute => attribute.type === extension.name)
255254
const context = {
256255
options: extension.options,
257256
editor,

packages/core/src/helpers/getAttributesFromExtensions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default function getAttributesFromExtensions(extensions: Extensions): Ext
8484
.entries(attributes)
8585
.forEach(([name, attribute]) => {
8686
extensionAttributes.push({
87-
type: getExtensionField(extension, 'name'),
87+
type: extension.name,
8888
name,
8989
attribute: {
9090
...defaultAttribute,

0 commit comments

Comments
 (0)