smbls 0.14.2 → 0.14.3

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/package.json +1 -1
  2. package/src/Media.js +1 -1
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "UI Library built on Scratch and DOMQL",
4
4
  "private": false,
5
5
  "author": "symbo.ls",
6
- "version": "0.14.2",
6
+ "version": "0.14.3",
7
7
  "repository": "https://github.com/symbo-ls/smbls",
8
8
  "main": "src/index.js",
9
9
  "files": [
package/src/Media.js CHANGED
@@ -108,7 +108,7 @@ export const initUpdate = element => {
108
108
  const rootState = element.__root ? element.__root.state : element.state
109
109
 
110
110
  const parentProps = element.parent.props
111
- if (parentProps.spacingRatio && parentProps.inheritSpacingRatio) {
111
+ if (parentProps && parentProps.spacingRatio && parentProps.inheritSpacingRatio) {
112
112
  element.setProps({
113
113
  spacingRatio: parentProps.spacingRatio,
114
114
  inheritSpacingRatio: true