We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7b2657 commit c812276Copy full SHA for c812276
1 file changed
web/modules/custom/hoeringsportal_project/src/Helper/ProjectHelper.php
@@ -148,10 +148,11 @@ public function entityPresave(EntityInterface $entity): void {
148
catch (\Exception $e) {
149
$this->logger->error('Error in node presave hook: @message', ['@message' => $e->getMessage()]);
150
}
151
- }
152
153
- // Delete orphaned paragraphs when references are removed.
154
- if ($entity->hasField('field_timeline')) {
+ $this->entityTypeManagerInterface->getStorage('node')
+ ->resetCache([$entity->id()]);
+
155
+ // Delete orphaned paragraphs when references are removed.
156
$this->deleteOrphanedParagraphs($entity);
157
158
0 commit comments