remove log

This commit is contained in:
karimaldeen 2024-09-11 17:00:14 +03:00
parent d3ab2a8f7d
commit 39a910d9ca
3 changed files with 1 additions and 6 deletions

View File

@ -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">

View File

@ -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,

View File

@ -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