Skip to content

Commit 9907ce4

Browse files
authored
[Grid] Handle Object as folders. (#1424)
1 parent 9d713d1 commit 9907ce4

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/DataIndex/Grid/GridSearch.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,8 @@ private function isFolderOfType(string $type, StudioElementInterface $element):
167167
return true;
168168
}
169169

170-
// We handle Variants as folders since they can have child items.
171-
if (
172-
$type === ElementTypes::TYPE_DATA_OBJECT
173-
&& $element instanceof DataObject
174-
&& $element->getAllowVariants()
175-
) {
170+
// We handle Object as folders since they can have child items.
171+
if ($type === ElementTypes::TYPE_DATA_OBJECT && $element instanceof DataObject) {
176172
return true;
177173
}
178174

0 commit comments

Comments
 (0)