Skip to content

Commit

Permalink
fixed Grid layout preview JS error in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-o committed Nov 16, 2023
1 parent 53e902f commit a8b0056
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/js/layout-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ $(document).on('beforeInitIsotope.vpf', (event, self, initOptions) => {
return;
}

if (self.options.layout !== 'grid') {
if (self.options.layout !== 'grid' || typeof initOptions !== 'object') {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion build/assets/js/layout-grid.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('jquery'), 'version' => 'd2a3fa324eeb6a4c8ff5');
<?php return array('dependencies' => array('jquery'), 'version' => '78f275b1a0a09a6a853d');
2 changes: 1 addition & 1 deletion build/assets/js/layout-grid.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a8b0056

Please sign in to comment.