Skip to content

Commit 9a3f89b

Browse files
committed
4905: add comment explaining break before rendering
1 parent ca40b80 commit 9a3f89b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

assets/admin/components/screen/util/grid-generation-and-select.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ function GridGenerationAndSelect({
138138
);
139139
};
140140

141+
// If there are no regions, the components should not spend time rendering.
141142
if (regions?.length === 0) return null;
142143

143144
return (

0 commit comments

Comments
 (0)