fix onedrive filter

This commit is contained in:
fyears 2024-03-17 15:31:32 +08:00
parent aff5a8b088
commit 996533328e

View File

@ -671,7 +671,7 @@ export const listAllFromRemote = async (client: WrappedOnedriveClient) => {
// unify everything to Entity
const unifiedContents = driveItems
.map((x) => fromDriveItemToEntity(x, client.remoteBaseDir))
.filter((x) => x.key !== "/");
.filter((x) => x.keyRaw !== "/");
return unifiedContents;
};