@symbo.ls/router 2.29.83 → 2.29.85

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.
Files changed (2) hide show
  1. package/index.js +5 -2
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -132,8 +132,11 @@ export async function router(path = '/', el, state = {}, passedOptions = {}) {
132
132
 
133
133
  const hasSet = isInitial || !isInitial
134
134
  if (hasSet) {
135
- if (options.forceContentUpdate || (!isInitial && wasModal)) {
136
- await element.content.update(
135
+ if (
136
+ element.content &&
137
+ (options.forceContentUpdate || (!isInitial && wasModal))
138
+ ) {
139
+ await element.content?.update(
137
140
  {},
138
141
  {
139
142
  preventUpdate: options.preventUpdate
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/router",
3
- "version": "2.29.83",
3
+ "version": "2.29.85",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -8,8 +8,8 @@
8
8
  "vpatch": "npm version patch && npm publish --access public"
9
9
  },
10
10
  "dependencies": {
11
- "@domql/utils": "^2.29.83"
11
+ "@domql/utils": "^2.29.85"
12
12
  },
13
- "gitHead": "1a13b29c5f992156251175b02b97eff4adab914e",
13
+ "gitHead": "1b59a8173275f34b13c1aba7a43073401f46989b",
14
14
  "source": "index.js"
15
15
  }