Fix TypeScript narrowing in product AI fill handler.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
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')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user