@micromag/element-background 0.3.430 → 0.3.432

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/es/index.js CHANGED
@@ -217,6 +217,9 @@ var BackgroundLayers = function BackgroundLayers(_ref) {
217
217
  return getLayersFromBackground(background);
218
218
  }, [background]);
219
219
  var maxZIndex = layers.length;
220
+ if (layers.length === 0) {
221
+ return null;
222
+ }
220
223
 
221
224
  // color
222
225
  var containerStyle = _objectSpread({}, hasSize ? {
package/lib/index.js CHANGED
@@ -221,6 +221,9 @@ var BackgroundLayers = function BackgroundLayers(_ref) {
221
221
  return utils.getLayersFromBackground(background);
222
222
  }, [background]);
223
223
  var maxZIndex = layers.length;
224
+ if (layers.length === 0) {
225
+ return null;
226
+ }
224
227
 
225
228
  // color
226
229
  var containerStyle = _objectSpread({}, hasSize ? {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-background",
3
- "version": "0.3.430",
3
+ "version": "0.3.432",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -55,8 +55,8 @@
55
55
  "dependencies": {
56
56
  "@babel/runtime": "^7.13.10",
57
57
  "@folklore/size": "^0.1.20",
58
- "@micromag/core": "^0.3.430",
59
- "@micromag/element-video": "^0.3.430",
58
+ "@micromag/core": "^0.3.432",
59
+ "@micromag/element-video": "^0.3.432",
60
60
  "classnames": "^2.2.6",
61
61
  "lodash": "^4.17.21",
62
62
  "prop-types": "^15.7.2",
@@ -67,5 +67,5 @@
67
67
  "access": "public",
68
68
  "registry": "https://registry.npmjs.org/"
69
69
  },
70
- "gitHead": "da790d76dba9d8e308d9f9c4e51d93a4a0e012a9"
70
+ "gitHead": "01df977a7eb5166425c0078c2369ea240549f386"
71
71
  }