🔖 Release Version 1.0.4-hf2

This commit is contained in:
MontaGhanmy
2024-10-24 14:43:05 +01:00
parent 03435a3d74
commit d3e29da1e4
4 changed files with 14 additions and 18 deletions
@@ -287,11 +287,7 @@ export class MongoConnector extends AbstractConnector<MongoConnectionOptions> {
.find(query)
.sort(sort)
.skip(Math.max(0, parseInt(options.pagination.page_token || "0")))
.limit(Math.max(0, parseInt(options.pagination.limitStr || "100")))
.collation({
locale: "en_US",
numericOrdering: true,
});
.limit(Math.max(0, parseInt(options.pagination.limitStr || "100")));
const entities: Table[] = [];
while (await cursor.hasNext()) {
+3 -3
View File
@@ -1,7 +1,7 @@
export default {
current: /* @VERSION_DETAIL */ "1.0.4-hf1",
current: /* @VERSION_DETAIL */ "1.0.4-hf2",
minimal: {
web: /* @MIN_VERSION_WEB */ "1.0.4-hf1",
mobile: /* @MIN_VERSION_MOBILE */ "1.0.4-hf1",
web: /* @MIN_VERSION_WEB */ "1.0.4-hf2",
mobile: /* @MIN_VERSION_MOBILE */ "1.0.4-hf2",
},
};
@@ -1,5 +1,5 @@
export default {
version: /* @VERSION */ '1.0.4-hf1',
version_detail: /* @VERSION_DETAIL */ '1.0.4-hf1',
version: /* @VERSION */ '1.0.4-hf2',
version_detail: /* @VERSION_DETAIL */ '1.0.4-hf2',
version_name: /* @VERSION_NAME */ 'Ghost-Dog',
};
@@ -122,13 +122,13 @@ export const useDriveItem = (id: string) => {
}));
}
// set children and remove duplicates
setChildren(prev => [
...prev,
...details.children.filter(
(item, index, self) =>
index === self.findIndex(t => t.id === item.id),
),
]);
setChildren(prev => {
// Create a Map for existing IDs for fast lookups
const existingIds = new Map(prev.map(item => [item.id, true]));
// Filter children while adding them to the state
return [...prev, ...details.children.filter(item => !existingIds.has(item.id))];
});
} catch (e) {
// set pagination end to true
set(DriveItemPagination, prev => ({
@@ -140,7 +140,7 @@ export const useDriveItem = (id: string) => {
} finally {
set(DriveItemPagination, prev => ({
...prev,
page: (prev.page + prev.limit),
page: prev.page + prev.limit,
}));
}
setLoading(false);