describo / crate-builder-component

A VueJS UI component to build an RO-Crate
MIT License
6 stars 3 forks source link

enableReverseLinkBrowser set from wrong config value #47

Closed beepsoft closed 1 year ago

beepsoft commented 1 year ago

It seems that the value for enableReverseLinkBrowser is set from $this?.config?.enableTemplateSave, but you probably meant $this?.config?.enableReverseLinkBrowser

https://github.com/describo/crate-builder-component/blob/953047880d375c6c36216c0799fa214dce41c8ba/src/crate-builder/Shell.component.wc.vue#LL70C9-L70C33

beepsoft commented 1 year ago

Also setting of purgeUnlinkedEntities below this line fails if there's no config:

https://github.com/describo/crate-builder-component/blob/953047880d375c6c36216c0799fa214dce41c8ba/src/crate-builder/Shell.component.wc.vue#L71

You probably meant:

purgeUnlinkedEntities: $this?.config?.purgeUnlinkedEntities ?? true,

with optional config? as with other settings.