Skip to content

Instantly share code, notes, and snippets.

@snez
Created November 21, 2016 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snez/803a1e5912fcfd02f4fbe427d20aa8f0 to your computer and use it in GitHub Desktop.
Save snez/803a1e5912fcfd02f4fbe427d20aa8f0 to your computer and use it in GitHub Desktop.
IWD OPC 1.0.2 patch for Magento 2.1.x
diff --git a/vendor/magento/module-ui/view/base/web/js/core/renderer/layout.js b/vendor/magento/module-ui/view/base/web/js/core/renderer/layout.js
index 9dbd57b..16ee902 100644
--- a/vendor/magento/module-ui/view/base/web/js/core/renderer/layout.js
+++ b/vendor/magento/module-ui/view/base/web/js/core/renderer/layout.js
@@ -75,7 +75,7 @@ define([
return false;
}
- if (cached) {
+ if (cached && JSON.stringify(nodes)) {
cachedConfig[_.keys(nodes)[0]] = JSON.parse(JSON.stringify(nodes));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment