fix(preview): sync isPreviewSuffixEnabled property on file storage save

This commit is contained in:
Andras Bacsai 2026-03-16 15:13:36 +01:00
parent add16853a8
commit c9861e08e3

View file

@ -181,6 +181,7 @@ public function submit()
// Sync component properties to model
$this->fileStorage->content = $this->content;
$this->fileStorage->is_based_on_git = $this->isBasedOnGit;
$this->fileStorage->is_preview_suffix_enabled = $this->isPreviewSuffixEnabled;
$this->fileStorage->save();
$this->fileStorage->saveStorageOnServer();
$this->dispatch('success', 'File updated.');