small bug fix to update source-control provider

This commit is contained in:
Saeed Vaziry
2023-10-29 22:37:46 +01:00
parent 1bf3c94358
commit 7b8deddeca
2 changed files with 4 additions and 2 deletions

View File

@ -11,12 +11,14 @@ class UpdateSourceControlProvider extends Component
{
public Site $site;
public ?int $source_control = null;
public $source_control = null;
public function update(): void
{
app(UpdateSourceControl::class)->update($this->site, $this->all());
$this->resetErrorBag();
session()->flash('status', 'source-control-updated');
}