fix: setOffest when the select sort option

This commit is contained in:
Dayoung 2025-05-27 13:16:00 +09:00
parent 25935a96be
commit efd3272ff4
2 changed files with 2 additions and 1 deletions

View File

@ -96,6 +96,7 @@ export default function SearchForm({ memberRole, userId }: { memberRole: string;
id="sort-option"
value={sort}
onChange={(e) => {
setOffset(0)
setSort(e.target.value as 'created' | 'updated')
}}
>

View File

@ -1,7 +1,7 @@
import getConfigs from '@/config/config.common'
// 환경마다 달라져야 할 변수, 값들을 정의합니다. (여기는 local 환경에 맞는 값을 지정합니다.)
const baseUrl = 'http://localhost:3000'
const baseUrl = 'http://172.30.1.65:3000'
const mode = 'local'
// 환경마다 달라져야 할 값들을 getConfig 함수에 전달합니다.