Refine category select tree gutters and tighten activity charts.
Restore RTL tree lines in category dropdowns, require product category on add, and improve chart bar density with Y-axis tooltips. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
b5c2a31262
commit
e324ae5763
@@ -191,6 +191,12 @@ export function AddNewProductPage() {
|
||||
setIsSubmitting(true)
|
||||
setError('')
|
||||
|
||||
if (!categoryId) {
|
||||
setError(t('products.form.errorCategory'))
|
||||
setIsSubmitting(false)
|
||||
return
|
||||
}
|
||||
|
||||
try {
|
||||
const featuredMediaId = await resolveDataUrlToMediaId(
|
||||
thumbnail,
|
||||
@@ -292,6 +298,7 @@ export function AddNewProductPage() {
|
||||
value={categoryId}
|
||||
onChange={setCategoryId}
|
||||
placeholder={t('products.form.categoryPlaceholder')}
|
||||
allowEmpty={false}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user