little updatE
This commit is contained in:
parent
30f2a97a68
commit
60140c5132
|
|
@ -69,7 +69,6 @@ export default function StaticPageBuilderEdit() {
|
||||||
setValue("slug", data?.slug);
|
setValue("slug", data?.slug);
|
||||||
setValue("description", data?.description);
|
setValue("description", data?.description);
|
||||||
setValue("htmlBody", addPreCode(data?.htmlBody));
|
setValue("htmlBody", addPreCode(data?.htmlBody));
|
||||||
console.log("asdasd", addPreCode(data?.htmlBody));
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const addPreCode = (htmlString: string): string => {
|
const addPreCode = (htmlString: string): string => {
|
||||||
|
|
|
||||||
|
|
@ -287,7 +287,6 @@ export default function MagazineTable() {
|
||||||
e.target.value === ""
|
e.target.value === ""
|
||||||
? ""
|
? ""
|
||||||
: setSelectedCategories(e.target.value);
|
: setSelectedCategories(e.target.value);
|
||||||
console.log("eeess", e.target.value);
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{categories?.map((category: any) => (
|
{categories?.map((category: any) => (
|
||||||
|
|
|
||||||
|
|
@ -242,7 +242,6 @@ export default function CategoriesTable(props: { triggerRefresh: boolean }) {
|
||||||
|
|
||||||
const findParent = (parent: number | undefined) => {
|
const findParent = (parent: number | undefined) => {
|
||||||
const finded = listCategory?.find((a: any) => a.id === parent);
|
const finded = listCategory?.find((a: any) => a.id === parent);
|
||||||
console.log("listt", finded);
|
|
||||||
if (finded) {
|
if (finded) {
|
||||||
setSelectedParent(finded);
|
setSelectedParent(finded);
|
||||||
}
|
}
|
||||||
|
|
@ -259,7 +258,6 @@ export default function CategoriesTable(props: { triggerRefresh: boolean }) {
|
||||||
|
|
||||||
const findRelated = (parent: number | string) => {
|
const findRelated = (parent: number | string) => {
|
||||||
const filter = listCategory?.filter((a) => a.id == parent);
|
const filter = listCategory?.filter((a) => a.id == parent);
|
||||||
console.log("filter", filter[0]?.label);
|
|
||||||
return filter[0]?.label;
|
return filter[0]?.label;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -139,7 +139,6 @@ export default function MappingUserLevel() {
|
||||||
console.log("dataa", data);
|
console.log("dataa", data);
|
||||||
// for (const element of data) {
|
// for (const element of data) {
|
||||||
// if (element.aliasName === "satker") {
|
// if (element.aliasName === "satker") {
|
||||||
// console.log("namanya", element.id);
|
|
||||||
// const request = {
|
// const request = {
|
||||||
// aliasName: element.aliasName,
|
// aliasName: element.aliasName,
|
||||||
// levelNumber: 2,
|
// levelNumber: 2,
|
||||||
|
|
@ -147,7 +146,6 @@ export default function MappingUserLevel() {
|
||||||
// parentLevelId: 692,
|
// parentLevelId: 692,
|
||||||
// provinceId: 0,
|
// provinceId: 0,
|
||||||
// };
|
// };
|
||||||
// console.log("reqq", request);
|
|
||||||
// const response = await editUserLevel(request, element.id);
|
// const response = await editUserLevel(request, element.id);
|
||||||
// if (response?.error) {
|
// if (response?.error) {
|
||||||
// break;
|
// break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue