Update image URL logic in ImageUploader component
Replace direct `fileUrl` usage with `getServerFileUrl` utility for consistent server URL formatting. Remove unnecessary fallback logic to streamline image selection.
This commit is contained in:
@@ -11,7 +11,7 @@ import { Input } from "@/components/ui/input";
|
||||
import { Textarea } from "@/components/ui/textarea";
|
||||
import { Label } from "@/components/ui/label";
|
||||
import { Switch } from "@/components/ui/switch";
|
||||
import { RESERVED_SLUGS } from "@/constants";
|
||||
import { RESERVED_SLUGS } from "@/lib/constants";
|
||||
|
||||
export default function CreateEventPage() {
|
||||
const router = useRouter();
|
||||
|
||||
Reference in New Issue
Block a user