From 39f787b7dbc1564a8f5f2a03232ccdb2cc66bf53 Mon Sep 17 00:00:00 2001 From: iamEvan Date: Mon, 27 May 2024 23:41:42 +0100 Subject: [PATCH] fix: sort by defined order + fixed typo --- app/Livewire/Project/Service/StackForm.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Livewire/Project/Service/StackForm.php b/app/Livewire/Project/Service/StackForm.php index 03bf99245..232e0ee3f 100644 --- a/app/Livewire/Project/Service/StackForm.php +++ b/app/Livewire/Project/Service/StackForm.php @@ -42,7 +42,7 @@ class StackForm extends Component $this->validationAttributes["fields.$key.value"] = $fieldKey; } } - $this->fields = $this->fields->sortDesc(); + //$this->fields = $this->fields->sortDesc(); } public function saveCompose($raw) { @@ -52,7 +52,7 @@ class StackForm extends Component public function instantSave() { $this->service->save(); - $this->dispatch('success', 'Service settings saved.'); + $this->dispatch('success', 'Service settings saved.'); } public function submit()