adding infolist to ViewRecord class makes header action no longer function?

I have a header action on my ViewRecord page, it has been working without issue. Today I added an infolist to the same page, and now the header action doesn't work. It's still there, but it's no longer a working button (no cursor when hovered, and clicking doesn't do anything). Commenting out this line fixes it:
{{ $this->contactInfoList }}
{{ $this->contactInfoList }}
Here's my infolist code:
public function contactInfoList(Infolist $infolist): Infolist
{
return $infolist->schema(self::getContactEntries())->columns(1);
}

public function getContactEntries()
{
return [ContactEntry::make(uniqid())
->label('')
->heading('Contacts')
->subHeading('Manage your shop contacts')
->getStateUsing(fn (Location $location) => $location->externalUsers)
->itemDescription(function (User $record) {
$record->load('role');
return $record->role->name;
})
->itemAvatarUrl(function (User $record) {
return $record->getUserDefaultAvatarUrl();
})];
}
public function contactInfoList(Infolist $infolist): Infolist
{
return $infolist->schema(self::getContactEntries())->columns(1);
}

public function getContactEntries()
{
return [ContactEntry::make(uniqid())
->label('')
->heading('Contacts')
->subHeading('Manage your shop contacts')
->getStateUsing(fn (Location $location) => $location->externalUsers)
->itemDescription(function (User $record) {
$record->load('role');
return $record->role->name;
})
->itemAvatarUrl(function (User $record) {
return $record->getUserDefaultAvatarUrl();
})];
}
I don't know why this would happen as the two aren't related at all.
2 Replies
Jon Mason
Jon Mason5mo ago
just noticed the sidebar navigation isn't working either. Weird..
Jon Mason
Jon Mason5mo ago
actually crap, that wasn't it. Now everything else is working but my infolist isn't showing up. argh.
Want results from more Discord servers?
Add your server
More Posts