forked from eatvio/eatvio-infra
reset body grade create comment fix
This commit is contained in:
@@ -21,7 +21,8 @@ class Create extends Component
|
||||
return view('livewire.plan.comment.create');
|
||||
}
|
||||
|
||||
public function toggle() {
|
||||
public function toggle()
|
||||
{
|
||||
$this->isChecked = !$this->isChecked;
|
||||
}
|
||||
|
||||
@@ -39,7 +40,8 @@ class Create extends Component
|
||||
$comment->plan_id = $this->plan->id;
|
||||
$comment->user_id = $this->user->id;
|
||||
$comment->save();
|
||||
$this->reset();
|
||||
|
||||
$this->reset(['grade', 'body']);
|
||||
|
||||
$this->toggle();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user