fix(Contexts): page format on create endpoint

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon
2024-04-08 17:26:16 +02:00
parent b4b1f7a801
commit ad9d3a9668

View File

@ -418,7 +418,7 @@ class ContextService {
unset($addedPage['content'][$pageContent->getId()]['pageId']); unset($addedPage['content'][$pageContent->getId()]['pageId']);
} }
$context->setPages($addedPage); $context->setPages([$addedPage['id'] => $addedPage]);
} }
protected function insertNodesFromArray(Context $context, array $nodes): void { protected function insertNodesFromArray(Context $context, array $nodes): void {