From ed869625ace9759dfb3562e9eaedf2e39c8e1c01 Mon Sep 17 00:00:00 2001 From: marsellavaleria19 Date: Wed, 8 Nov 2023 13:21:29 +0700 Subject: [PATCH] fix : sorting by created date on component complaint --- components/Aduan/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Aduan/index.vue b/components/Aduan/index.vue index 337b9852..b01df98b 100644 --- a/components/Aduan/index.vue +++ b/components/Aduan/index.vue @@ -300,7 +300,7 @@ export default { } // default sort by updated date - if (this.checkComplaintTypeSortByUpdatedDateHandle()) { + if (this.checkComplaintTypeSortByUpdatedDateHandle() && !this.query.sort_by) { this.setQuery({ sort_by: 'updated_at' }) }