Merge branch 'dev' of github.com:smart-chain-fr/leCoffre-front into dev
This commit is contained in:
commit
3980e1ddf5
@ -15,6 +15,8 @@ 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;
|
||||||
@ -144,6 +146,21 @@ 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