remove log
This commit is contained in:
parent
d3ab2a8f7d
commit
39a910d9ca
|
|
@ -43,13 +43,11 @@ const SelectTag: React.FC = () => {
|
||||||
: [];
|
: [];
|
||||||
|
|
||||||
|
|
||||||
console.log(options);
|
|
||||||
console.log(formik?.values?.tags);
|
|
||||||
const value = formik?.values?.tags?.map((item: any) => item?.id ?? item) ?? [];
|
const value = formik?.values?.tags?.map((item: any) => item?.id ?? item) ?? [];
|
||||||
|
|
||||||
|
|
||||||
const AllOptions = [...options, ...additionalData]
|
const AllOptions = [...options, ...additionalData]
|
||||||
console.log(AllOptions);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="SelectTag">
|
<div className="SelectTag">
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ export const getInitialValues = (objectToEdit: Question): any => {
|
||||||
const tags = objectToEdit?.tags?.map((item: any, index: number) => {
|
const tags = objectToEdit?.tags?.map((item: any, index: number) => {
|
||||||
return { ...item };
|
return { ...item };
|
||||||
});
|
});
|
||||||
console.log(tags);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id: objectToEdit?.id ?? null,
|
id: objectToEdit?.id ?? null,
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,7 @@ export const RoleByType = (item: { type?: string }):boolean=>{
|
||||||
const LocalType = getLocalStorage(USER_KEY)?.type ?? undefined ;
|
const LocalType = getLocalStorage(USER_KEY)?.type ?? undefined ;
|
||||||
const isAdmin = LocalType === UserTypeEnum.ADMIN ;
|
const isAdmin = LocalType === UserTypeEnum.ADMIN ;
|
||||||
const isReSeller = LocalType === UserTypeEnum.RE_SELLER;
|
const isReSeller = LocalType === UserTypeEnum.RE_SELLER;
|
||||||
const isAdminRoute = type === UserTypeEnum.ADMIN ;
|
|
||||||
const isReSellerRoute = type === UserTypeEnum.RE_SELLER;
|
const isReSellerRoute = type === UserTypeEnum.RE_SELLER;
|
||||||
console.log(LocalType);
|
|
||||||
|
|
||||||
if(!LocalType){
|
if(!LocalType){
|
||||||
return false
|
return false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user