Read prebuilt templates from code directly

This commit is contained in:
akhisud3195 2025-09-16 15:53:13 +04:00
parent 726559de76
commit 2a1143c833
5 changed files with 133 additions and 102 deletions

View file

@ -195,6 +195,7 @@ export function BuildAssistantSection() {
// Handle template like (unified for library and community) - now uses proper authentication
const handleTemplateLike = async (template: any) => {
if (template.type === 'prebuilt') return;
try {
const data = await toggleTemplateLike(template.id);