Fix content field not loading in product edit form

- Add 'content' field to fetchProducts SELECT query
- Fixes Rich Text Editor showing empty when editing products

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
dwindown
2026-01-03 22:25:24 +07:00
parent 8217261706
commit ce10be63f3

View File

@@ -90,7 +90,7 @@ export default function AdminProducts() {
const fetchProducts = async () => { const fetchProducts = async () => {
const { data, error } = await supabase const { data, error } = await supabase
.from('products') .from('products')
.select('id, title, slug, type, description, meeting_link, recording_url, m3u8_url, mp4_url, video_host, event_start, duration_minutes, price, sale_price, is_active, chapters') .select('id, title, slug, type, description, content, meeting_link, recording_url, m3u8_url, mp4_url, video_host, event_start, duration_minutes, price, sale_price, is_active, chapters')
.order('created_at', { ascending: false }); .order('created_at', { ascending: false });
if (!error && data) setProducts(data); if (!error && data) setProducts(data);
setLoading(false); setLoading(false);