@symbo.ls/preview 0.0.83 → 0.0.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.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@symbo.ls/preview",
3
3
  "description": "",
4
4
  "author": "",
5
- "version": "0.0.83",
5
+ "version": "0.0.85",
6
6
  "repository": "https://github.com/rackai/editor",
7
7
  "main": "src/index.js",
8
8
  "scripts": {
@@ -28,7 +28,7 @@ const ButtonInDropdown = {
28
28
  const keyLength = Object.keys(activeProperty).length
29
29
  const iconKey = diffIconTypes(propValue, directionValue)
30
30
 
31
- const active = table.props[propValue] === row?.key
31
+ const active = table.props[propValue] === row && row.key
32
32
 
33
33
  const gridArea = keyLength > 3 && diffPropPosition(propValue, directionValue)
34
34
 
@@ -79,7 +79,7 @@ const DotForPropButton = {
79
79
  const property = direction.parent
80
80
 
81
81
  const propKey = diffPropValue(property.value, direction.value)
82
- const active = table.props[propKey] === row?.key
82
+ const active = table.props[propKey] === row && row.key
83
83
 
84
84
  const isRadius = property.value === 'borderRadius'
85
85
 
@@ -116,7 +116,7 @@ export const SpacingPropButton = {
116
116
  props: (element) => {
117
117
  const { table, row, property } = getStateTree(element)
118
118
  const propValue = property.value
119
- const active = table.props[propValue] === row?.key
119
+ const active = table.props[propValue] === row && row.key
120
120
  return {
121
121
  active,
122
122
  lazyLoad: true,
@@ -29,7 +29,7 @@ export default {
29
29
  Object.keys(SPACING_BUTTONS).filter(v => {
30
30
  const rowState = state.sequence[state.selectedKey]
31
31
  const { maxValue } = SPACING_BUTTONS[v]
32
- return maxValue ? maxValue > rowState?.val : true
32
+ return maxValue ? maxValue > rowState && rowState.val : true
33
33
  }
34
34
  )
35
35
  }