revert redirect
This commit is contained in:
parent
6d64034ff1
commit
5b75031d59
@ -15,8 +15,6 @@ import Image, { StaticImageData } from "next/image";
|
|||||||
import React, { ReactNode } from "react";
|
import React, { ReactNode } from "react";
|
||||||
|
|
||||||
import classes from "./classes.module.scss";
|
import classes from "./classes.module.scss";
|
||||||
import Module from "@Front/Config/Module";
|
|
||||||
import router from "next/router";
|
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
title: string;
|
title: string;
|
||||||
@ -146,21 +144,6 @@ export default class DefaultNotaryDashboard extends React.Component<IProps, ISta
|
|||||||
};
|
};
|
||||||
|
|
||||||
const folders = await Folders.getInstance().get(query);
|
const folders = await Folders.getInstance().get(query);
|
||||||
if (folders.length > 0)
|
|
||||||
this.props.isArchived
|
|
||||||
? router.push(
|
|
||||||
Module.getInstance()
|
|
||||||
.get()
|
|
||||||
.modules.pages.Folder.pages.FolderArchived.pages.FolderInformation.props.path.replace(
|
|
||||||
"[folderUid]",
|
|
||||||
folders[0]?.uid ?? "",
|
|
||||||
),
|
|
||||||
)
|
|
||||||
: router.push(
|
|
||||||
Module.getInstance()
|
|
||||||
.get()
|
|
||||||
.modules.pages.Folder.pages.FolderInformation.props.path.replace("[folderUid]", folders[0]?.uid ?? ""),
|
|
||||||
);
|
|
||||||
this.setState({ folders: folders });
|
this.setState({ folders: folders });
|
||||||
}
|
}
|
||||||
public override componentWillUnmount() {
|
public override componentWillUnmount() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user