This commit is contained in:
Dennis Eichhorn 2023-07-17 01:39:33 +00:00
parent 4bdb208dce
commit 99a1ac476d

View File

@ -66,7 +66,7 @@ trait EditorDocListTrait
public function getEditorDocByTypeName(string $type) : EditorDoc
{
foreach ($this->notes as $note) {
if ($note->type?->name === $type) {
if ($note->type?->title === $type) {
return $note;
}
}