Disable demo seed in Feed when Supabase configured
cgen-d1a4cb4c160d4187882ba72f87e3c9e8
This commit is contained in:
parent
b886780a20
commit
cdfdd05720
1 changed files with 2 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ import { communityService, realtimeService } from "@/lib/supabase-service";
|
||||||
import PostComposer from "@/components/social/PostComposer";
|
import PostComposer from "@/components/social/PostComposer";
|
||||||
import { useToast } from "@/hooks/use-toast";
|
import { useToast } from "@/hooks/use-toast";
|
||||||
import { ensureDemoSeed } from "@/lib/demo-feed";
|
import { ensureDemoSeed } from "@/lib/demo-feed";
|
||||||
|
import { isSupabaseConfigured } from "@/lib/supabase";
|
||||||
import {
|
import {
|
||||||
Heart,
|
Heart,
|
||||||
MessageCircle,
|
MessageCircle,
|
||||||
|
|
@ -65,7 +66,7 @@ export default function Feed() {
|
||||||
const [muted, setMuted] = useState(true);
|
const [muted, setMuted] = useState(true);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
ensureDemoSeed();
|
if (!isSupabaseConfigured) ensureDemoSeed();
|
||||||
const load = async () => {
|
const load = async () => {
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue