Skip to content

Commit

Permalink
fix: id can be missing
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Jul 1, 2024
1 parent 2c9ced6 commit 1fe544a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/merge.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function fixRange(stdClass &$current, stdClass &$cache): void
}
$variables[$identifier] = $doc;
$kbEntry = new stdClass();
$kbEntry->anchor = $doc->id;
$kbEntry->anchor = $doc->id ?? null;
$kbEntry->url = $fileData->url;
$doc->ids[] = $kbEntry;
unset($doc->id);
Expand Down

0 comments on commit 1fe544a

Please sign in to comment.