diff --git a/fe/src/app/eventcreate-page/components/EventNameInput.tsx b/fe/src/app/eventcreate-page/components/EventNameInput.tsx
index fb6ec53..8d90214 100644
--- a/fe/src/app/eventcreate-page/components/EventNameInput.tsx
+++ b/fe/src/app/eventcreate-page/components/EventNameInput.tsx
@@ -7,7 +7,7 @@ import {
cleanString,
isValidLength,
generateDefaultEventName,
-} from "../utils/formHelpers";
+} from "../utils/formHelpers";
interface EventNameInputProps {
className?: string;
diff --git a/fe/src/app/eventcreate-page/location-search/page.tsx b/fe/src/app/eventcreate-page/location-search/page.tsx
index b96de4a..61e3750 100644
--- a/fe/src/app/eventcreate-page/location-search/page.tsx
+++ b/fe/src/app/eventcreate-page/location-search/page.tsx
@@ -63,10 +63,9 @@ function LocationSearch() {
};
}, [location, debouncedFetch]);
- // Focus the input field on component mount
useEffect(() => {
if (inputRef.current) {
- inputRef.current.focus(); // Automatically focus on the input field
+ inputRef.current.focus();
}
}, []);
diff --git a/fe/src/app/eventcreate-page/page.tsx b/fe/src/app/eventcreate-page/page.tsx
index f630150..eedf5f4 100644
--- a/fe/src/app/eventcreate-page/page.tsx
+++ b/fe/src/app/eventcreate-page/page.tsx
@@ -46,10 +46,6 @@ function EventCreatePage() {
setIsSubmitting(false);
}
};
- useEffect(() => {
- setLocation(null); // selectedLocation 초기화
- setEventName(""); // eventName 초기화
- }, [setLocation]);
useEffect(() => {
if (uuid) router.push(`/event-maps/${uuid}`);
@@ -64,12 +60,14 @@ function EventCreatePage() {
className="mt-[12px] w-full"
value={selectedLocation?.name || ""}
/>
-
+
+
+