fix: update condition for rendering button based on variants length in create and edit pages
This commit is contained in:
parent
3b49f5ff3a
commit
fb70cca1dc
@ -335,8 +335,8 @@ export default function RawMaterialCreate() {
|
|||||||
Terapkan ke
|
Terapkan ke
|
||||||
Semua
|
Semua
|
||||||
</Button>
|
</Button>
|
||||||
{variantIndex >
|
{variants.length >
|
||||||
0 && (
|
1 && (
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
|
|||||||
@ -351,8 +351,8 @@ export default function RawMaterialEdit({ rawMaterial }: Props) {
|
|||||||
Terapkan ke
|
Terapkan ke
|
||||||
Semua
|
Semua
|
||||||
</Button>
|
</Button>
|
||||||
{variantIndex >
|
{variants.length >
|
||||||
0 && (
|
1 && (
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user