Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Claushingebjerg 939 posts 2574 karma points
    Nov 08, 2023 @ 14:51
    Claushingebjerg
    0

    Null check nested blockgrid

    Im using

    @await Html.GetBlockGridItemAreasHtmlAsync(Model)
    

    to render some nested blockgrid. How do i null check to see if the current block has child blocks? It works fine as it is in the frontend, but i get an error in the backoffice custom view when inserting an empty block.

    enter image description here

Please Sign in or register to post replies

Write your reply to:

Draft