Skip to content

Commit

Permalink
hotfix: 서버에서 Date 함수 실행되지 않도록
Browse files Browse the repository at this point in the history
  • Loading branch information
owl1753 committed Feb 28, 2025
1 parent 734143e commit 230a4bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/containers/select/Supporting/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ function Supporting() {
const [supportingTeam, setSupportingTeam] = useState<number>(0);

useEffect(() => {
setSearchText('');
}, []);
if (typeof window === 'undefined') return;

useEffect(() => {
let count = 0;

teamData.forEach((value) => {
Expand All @@ -32,6 +30,8 @@ function Supporting() {
}, [teamData]);

const filterData = useMemo(() => {
if (typeof window === 'undefined') return;

return teamData.filter((item) => {
if (searchText === '') {
return (
Expand Down

0 comments on commit 230a4bf

Please sign in to comment.