From ee52d354c7f44052c585a27f4974a9f6512c1196 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Tue, 23 Sep 2025 07:53:01 +0000 Subject: (대표님, 임수민) 도큐먼트 리스트 role 수정 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/information/information-client.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'components/information') diff --git a/components/information/information-client.tsx b/components/information/information-client.tsx index 53350d13..15487638 100644 --- a/components/information/information-client.tsx +++ b/components/information/information-client.tsx @@ -66,7 +66,7 @@ export function InformationClient({ initialData = [] }: InformationClientProps) const [informations, setInformations] = useState(initialData) const [loading, setLoading] = useState(false) const [searchQuery, setSearchQuery] = useState("") - const [sortField, setSortField] = useState("createdAt") + const [sortField, setSortField] = useState("updatedAt") const [sortDirection, setSortDirection] = useState("desc") const [editingInformation, setEditingInformation] = useState(null) const [isEditDialogOpen, setIsEditDialogOpen] = useState(false) @@ -121,9 +121,9 @@ export function InformationClient({ initialData = [] }: InformationClientProps) aValue = a.pagePath bValue = b.pagePath break - case "createdAt": - aValue = new Date(a.createdAt) - bValue = new Date(b.createdAt) + case "updatedAt": + aValue = new Date(a.updatedAt) + bValue = new Date(b.updatedAt) break default: return 0 @@ -155,8 +155,8 @@ export function InformationClient({ initialData = [] }: InformationClientProps) aValue = a.pagePath bValue = b.pagePath } else { - aValue = new Date(a.createdAt) - bValue = new Date(b.createdAt) + aValue = new Date(a.updatedAt) + bValue = new Date(b.updatedAt) } if (aValue < bValue) { -- cgit v1.2.3