Compare commits
No commits in common. "6bd76420b254dafddcb5e184901a48d204f82d7c" and "bb1dea088f7ae4382da33e8bf7bf86b16c1e7091" have entirely different histories.
6bd76420b2
...
bb1dea088f
@ -34,13 +34,6 @@ export default class Folders extends BaseNotary {
|
||||
public async get(q: IGetFoldersParams): Promise<OfficeFolder[]> {
|
||||
const url = new URL(this.baseURl);
|
||||
Object.entries(q).forEach(([key, value]) => url.searchParams.set(key, JSON.stringify(value)));
|
||||
|
||||
console.log('URL complète :', url.toString());
|
||||
console.log('Paramètres de recherche :', {
|
||||
baseURL: this.baseURl,
|
||||
queryParams: Object.fromEntries(url.searchParams.entries())
|
||||
});
|
||||
|
||||
try {
|
||||
return await this.getRequest<OfficeFolder[]>(url);
|
||||
} catch (err) {
|
||||
|
@ -31,14 +31,12 @@ export default function Folder() {
|
||||
},
|
||||
})
|
||||
.then((folders) => {
|
||||
if (folders.length > 0) {
|
||||
console.log("Liste des dossiers:", JSON.stringify(folders));
|
||||
// router.push(
|
||||
// Module.getInstance()
|
||||
// .get()
|
||||
// .modules.pages.Folder.pages.FolderInformation.props.path.replace("[folderUid]", folders[0]?.uid ?? ""),
|
||||
// );
|
||||
}
|
||||
if (folders.length > 0)
|
||||
router.push(
|
||||
Module.getInstance()
|
||||
.get()
|
||||
.modules.pages.Folder.pages.FolderInformation.props.path.replace("[folderUid]", folders[0]?.uid ?? ""),
|
||||
);
|
||||
});
|
||||
}, [router]);
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user