Fixed an error when saving a project when there is no language data.

This commit is contained in:
Leonid Nikitin 2024-05-18 22:58:05 +05:00
parent 78e6a1e396
commit 42701a24db
Signed by: kor-elf
GPG Key ID: 3C0F720C170F6E1D

View File

@ -19,7 +19,7 @@ protected function getName(): string
private function getValue(): array
{
$value = old($this->getRequestName(), null);
if (\is_null($value)) {
if (\is_null($value) || !isset($value['items']) || !\is_array($value['items'])) {
return $this->value;
}