Fix TypeScript narrowing in product AI fill handler.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-28 22:32:47 +03:30
co-authored by Cursor
parent a412cb82fc
commit b5c2a31262
@@ -93,7 +93,7 @@ export function AddNewProductPage() {
if (result.field === 'summary') {
setSummary(result.text)
showToast(t('products.form.aiSummaryFilled'), 'success')
} else {
} else if (result.field === 'description') {
setDescription(result.html)
showToast(t('products.form.aiDescriptionFilled'), 'success')
}