@museumwnf/viewer-core 1.16.0 → 1.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@museumwnf/viewer-core",
3
- "version": "1.16.0",
3
+ "version": "1.16.1",
4
4
  "description": "Application engine for MWNF websites: turns a dataset.config.js into a mounted Vue application.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -44,7 +44,7 @@ export function useExhibitionTimeline(data, collection, config = {}) {
44
44
 
45
45
  /** True when the Timeline section is the exhibition's own chronology. */
46
46
  const usesLocalTimeline = computed(
47
- () => !exhibition.has_country_timeline && Boolean(localTimeline.value),
47
+ () => !exhibition.value?.has_country_timeline && Boolean(localTimeline.value),
48
48
  )
49
49
 
50
50
  /**
@@ -58,7 +58,7 @@ export function useExhibitionTimeline(data, collection, config = {}) {
58
58
  * introduction. Only the links into it are withheld.
59
59
  */
60
60
  const hasTimeline = computed(
61
- () => Boolean(exhibition.has_timeline || exhibition.has_country_timeline),
61
+ () => Boolean(exhibition.value?.has_timeline || exhibition.value?.has_country_timeline),
62
62
  )
63
63
 
64
64
  /** The events this site's manual Timeline reads (ItemSheet's own popout). */