Done
This commit is contained in:
parent
7db6880b31
commit
e6f7a2a4a8
|
|
@ -13,7 +13,6 @@ import { TabsContainer } from './Add/AttributeTab/TabsContainer';
|
||||||
import { useAddAttributeValue } from '../../../api/attributeValue';
|
import { useAddAttributeValue } from '../../../api/attributeValue';
|
||||||
|
|
||||||
import useNavigateOnSuccess from '../../../Hooks/useNavigateOnSuccess';
|
import useNavigateOnSuccess from '../../../Hooks/useNavigateOnSuccess';
|
||||||
import { isvalidation } from './Add/fn/isvalidation';
|
|
||||||
import { toast } from 'react-toastify';
|
import { toast } from 'react-toastify';
|
||||||
|
|
||||||
const AddcategoriesPage = () => {
|
const AddcategoriesPage = () => {
|
||||||
|
|
@ -172,7 +171,7 @@ const AddcategoriesPage = () => {
|
||||||
const IMage =
|
const IMage =
|
||||||
(typeof AttributeValue?.image === 'string') ?
|
(typeof AttributeValue?.image === 'string') ?
|
||||||
{
|
{
|
||||||
copied_assets: { image: AttributeValue?.image }
|
copied_image: AttributeValue?.image
|
||||||
} :
|
} :
|
||||||
{
|
{
|
||||||
image: AttributeValue?.image
|
image: AttributeValue?.image
|
||||||
|
|
@ -201,6 +200,10 @@ const AddcategoriesPage = () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isSuccess){
|
||||||
|
setObjectToEdit([]);
|
||||||
|
}
|
||||||
},[isSuccess])
|
},[isSuccess])
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -357,7 +357,7 @@ const EditPage = () => {
|
||||||
const IMage =
|
const IMage =
|
||||||
(typeof EditAttributeValue?.image === 'string') ?
|
(typeof EditAttributeValue?.image === 'string') ?
|
||||||
{
|
{
|
||||||
copied_assets: { image: EditAttributeValue?.image }
|
copied_image: EditAttributeValue?.image
|
||||||
} :
|
} :
|
||||||
{
|
{
|
||||||
image: EditAttributeValue?.image
|
image: EditAttributeValue?.image
|
||||||
|
|
@ -423,7 +423,7 @@ const EditPage = () => {
|
||||||
const IMage =
|
const IMage =
|
||||||
(typeof AddAttributeValue?.image === 'string') ?
|
(typeof AddAttributeValue?.image === 'string') ?
|
||||||
{
|
{
|
||||||
copied_assets: { image: AddAttributeValue?.image }
|
copied_image: AddAttributeValue?.image
|
||||||
} :
|
} :
|
||||||
{
|
{
|
||||||
image: AddAttributeValue?.image
|
image: AddAttributeValue?.image
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user