@jsonforms/material-renderers 3.7.0 → 3.8.0-alpha.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": "@jsonforms/material-renderers",
3
- "version": "3.7.0",
3
+ "version": "3.8.0-alpha.1",
4
4
  "description": "Material Renderer Set for JSON Forms",
5
5
  "repository": {
6
6
  "type": "git",
@@ -80,8 +80,8 @@
80
80
  "peerDependencies": {
81
81
  "@emotion/react": "^11.5.0",
82
82
  "@emotion/styled": "^11.3.0",
83
- "@jsonforms/core": "3.7.0",
84
- "@jsonforms/react": "3.7.0",
83
+ "@jsonforms/core": "3.8.0-alpha.1",
84
+ "@jsonforms/react": "3.8.0-alpha.1",
85
85
  "@mui/icons-material": "^7.0.0",
86
86
  "@mui/material": "^7.0.0",
87
87
  "@mui/x-date-pickers": "^8.0.0",
@@ -134,8 +134,8 @@
134
134
  "webpack": "^5.78.0",
135
135
  "webpack-cli": "^5.1.4",
136
136
  "webpack-dev-server": "^4.15.1",
137
- "@jsonforms/core": "3.7.0",
138
- "@jsonforms/react": "3.7.0"
137
+ "@jsonforms/core": "3.8.0-alpha.1",
138
+ "@jsonforms/react": "3.8.0-alpha.1"
139
139
  },
140
140
  "scripts": {
141
141
  "build": "rollup -c rollup.config.js",
@@ -23,7 +23,6 @@
23
23
  THE SOFTWARE.
24
24
  */
25
25
  import React, { useCallback, useMemo, useState } from 'react';
26
- import isEmpty from 'lodash/isEmpty';
27
26
 
28
27
  import { TabSwitchConfirmDialog } from './TabSwitchConfirmDialog';
29
28
 
@@ -98,7 +97,7 @@ export const MaterialOneOfRenderer = ({
98
97
  const handleTabChange = useCallback(
99
98
  (_event: any, newOneOfIndex: number) => {
100
99
  setNewSelectedIndex(newOneOfIndex);
101
- if (isEmpty(data)) {
100
+ if (data === undefined) {
102
101
  openNewTab(newOneOfIndex);
103
102
  } else {
104
103
  setConfirmDialogOpen(true);