Skip to content

Commit

Permalink
Fix expanded state not getting red correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
garbast authored Jun 21, 2024
1 parent 03b6522 commit dc5886b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Xclass/ContainerPreviewRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function renderPageModulePreviewContent(GridColumnItem $item): string
protected function getColumnCollapsedState(int $recordUid, int $colPos, array $col): bool
{
$collapseId = $recordUid . ContainerGridColumn::CONTAINER_COL_POS_DELIMITER_V12 . $colPos;
if ($this->getBackendUser()->uc['moduleData']['list']['containerExpanded'][$collapseId] ?? false) {
if (isset($this->getBackendUser()->uc['moduleData']['list']['containerExpanded'][$collapseId])) {
$collapsed = $this->getBackendUser()->uc['moduleData']['list']['containerExpanded'][$collapseId] > 0;
} else {
$collapsed = (bool)($col['collapsed'] ?? false);
Expand Down

0 comments on commit dc5886b

Please sign in to comment.