Skip to content

Commit

Permalink
try view location
Browse files Browse the repository at this point in the history
  • Loading branch information
robmeijerink committed Nov 2, 2020
1 parent 8f95cc2 commit ce862d8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sage-acf-gutenberg-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,12 @@ function sage_blocks_callback($block, $content = '', $is_preview = false, $post_
}

} else {
// Use Sage 9's template() function to echo the block and populate it with data
echo \App\template($view, ['block' => $block]);
try {
// Use Sage 9's template() function to echo the block and populate it with data
echo \App\template($view, ['block' => $block]);
} catch (\Exception $e) {
//
}
}
}
}
Expand Down

0 comments on commit ce862d8

Please sign in to comment.