Skip to content

Commit

Permalink
Tags: Fix collection editor (#2080)
Browse files Browse the repository at this point in the history
* Tags: Revert collection editor changes

Signed-off-by: Anna No <anna.no@xored.com>

* Tags: Revert collection editor changes

Signed-off-by: Anna No <anna.no@xored.com>
  • Loading branch information
annano authored Jun 15, 2022
1 parent 1562ada commit 5a28f62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 4 additions & 0 deletions models/tags/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ export function createModel (builder: Builder): void {
builder.createModel(TTagElement, TTagReference, TTagCategory)

builder.mixin(tags.class.TagReference, core.class.Class, view.mixin.CollectionEditor, {
editor: tags.component.Tags
})

builder.mixin(tags.class.TagReference, core.class.Class, view.mixin.AttributeEditor, {
editor: tags.component.TagsAttributeEditor
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,7 @@
return
}
const category = presenterClass.category
let mixinRef = undefined
if (category === 'attribute') {
mixinRef = view.mixin.AttributeEditor
}
if (category === 'collection') {
mixinRef = view.mixin.CollectionEditor
}
let mixinRef = view.mixin.AttributeEditor
if (category === 'array') {
mixinRef = view.mixin.ArrayEditor
}
Expand Down

0 comments on commit 5a28f62

Please sign in to comment.