Co-authored-by: SektorDV <35644259+SektorDV@users.noreply.github.com>
This commit is contained in:
parent
8ef3c06efe
commit
9b2f5e3db2
1 changed files with 2 additions and 2 deletions
|
@ -174,7 +174,6 @@ function useProductCreateForm(
|
||||||
trackInventory: false,
|
trackInventory: false,
|
||||||
weight: ""
|
weight: ""
|
||||||
};
|
};
|
||||||
|
|
||||||
const [changed, setChanged] = React.useState(false);
|
const [changed, setChanged] = React.useState(false);
|
||||||
const triggerChange = () => setChanged(true);
|
const triggerChange = () => setChanged(true);
|
||||||
|
|
||||||
|
@ -312,7 +311,8 @@ function useProductCreateForm(
|
||||||
data.channelListings.some(
|
data.channelListings.some(
|
||||||
channel =>
|
channel =>
|
||||||
validatePrice(channel.price) || validateCostPrice(channel.costPrice)
|
validatePrice(channel.price) || validateCostPrice(channel.costPrice)
|
||||||
));
|
) ||
|
||||||
|
!data.category);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
change: handleChange,
|
change: handleChange,
|
||||||
|
|
Loading…
Reference in a new issue