Skip to content

Commit 82e93c9

Browse files
committed
killing a bug on the view-all view
1 parent c04a5f6 commit 82e93c9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/js/modal-styleguide.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,11 @@ var modalStyleguide = {
106106
*/
107107
collectAndSend: function(el, iframePassback, switchText) {
108108
var patternData = JSON.parse(el.innerHTML);
109-
patternMarkupEl = document.querySelector('#'+patternData.patternPartial+' > .sg-pattern-example');
110-
patternData.patternMarkup = (patternMarkupEl !== null) ? patternMarkupEl.innerHTML : document.querySelector('body').innerHTML;
111-
modalStyleguide.patternQueryInfo(patternData, iframePassback, switchText);
109+
if (patternData.patternName !== undefined) {
110+
patternMarkupEl = document.querySelector('#'+patternData.patternPartial+' > .sg-pattern-example');
111+
patternData.patternMarkup = (patternMarkupEl !== null) ? patternMarkupEl.innerHTML : document.querySelector('body').innerHTML;
112+
modalStyleguide.patternQueryInfo(patternData, iframePassback, switchText);
113+
}
112114
},
113115

114116
/**

0 commit comments

Comments
 (0)