diff --git a/core/modules/image/src/Entity/ImageStyle.php b/core/modules/image/src/Entity/ImageStyle.php index 752dc1e..338c574 100644 --- a/core/modules/image/src/Entity/ImageStyle.php +++ b/core/modules/image/src/Entity/ImageStyle.php @@ -98,6 +98,14 @@ public function id() { /** * {@inheritdoc} */ + public function preSave(EntityStorageInterface $storage) { + $this->effectsBag = NULL; + parent::preSave($storage); + } + + /** + * {@inheritdoc} + */ public function postSave(EntityStorageInterface $storage, $update = TRUE) { parent::postSave($storage, $update);