Skip to content

Commit

Permalink
Feature/96 new event (#97)
Browse files Browse the repository at this point in the history
* [feature] ์ƒˆ๋กœ ์ด๋ฒคํŠธ ์ƒ์„ฑ์‹œ ํŠน์ • ๊ฐ’์ด ์ฑ„์›Œ์ ธ ์žˆ๋Š” ๋ฒ„๊ทธ ์ˆ˜์ •

* [feature] ๋นŒ๋“œ ์˜ค๋ฅ˜ ์ˆ˜์ •
  • Loading branch information
choihooo authored Nov 28, 2024
1 parent 9cd252c commit 6e488fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions fe/src/app/eventcreate-page/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ function EventCreatePage() {
setIsSubmitting(false);
}
};
useEffect(() => {
setLocation(null); // selectedLocation ์ดˆ๊ธฐํ™”
setEventName(""); // eventName ์ดˆ๊ธฐํ™”
}, [setLocation]);

useEffect(() => {
if (uuid) router.push(`/event-maps/${uuid}`);
Expand Down
2 changes: 1 addition & 1 deletion fe/src/app/eventcreate-page/stores/useLocationStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Place {

interface LocationState {
selectedLocation: Place | null;
setLocation: (location: Place) => void;
setLocation: (location: Place | null) => void;
}

export const useLocationStore = create<LocationState>((set) => ({
Expand Down

0 comments on commit 6e488fe

Please sign in to comment.