🔖 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) .find(query)
.sort(sort) .sort(sort)
.skip(Math.max(0, parseInt(options.pagination.page_token || "0"))) .skip(Math.max(0, parseInt(options.pagination.page_token || "0")))
.limit(Math.max(0, parseInt(options.pagination.limitStr || "100"))) .limit(Math.max(0, parseInt(options.pagination.limitStr || "100")));
.collation({
locale: "en_US",
numericOrdering: true,
});
const entities: Table[] = []; const entities: Table[] = [];
while (await cursor.hasNext()) { while (await cursor.hasNext()) {
+3 -3
View File
@@ -1,7 +1,7 @@
export default { export default {
current: /* @VERSION_DETAIL */ "1.0.4-hf1", current: /* @VERSION_DETAIL */ "1.0.4-hf2",
minimal: { minimal: {
web: /* @MIN_VERSION_WEB */ "1.0.4-hf1", web: /* @MIN_VERSION_WEB */ "1.0.4-hf2",
mobile: /* @MIN_VERSION_MOBILE */ "1.0.4-hf1", mobile: /* @MIN_VERSION_MOBILE */ "1.0.4-hf2",
}, },
}; };
@@ -1,5 +1,5 @@
export default { export default {
version: /* @VERSION */ '1.0.4-hf1', version: /* @VERSION */ '1.0.4-hf2',
version_detail: /* @VERSION_DETAIL */ '1.0.4-hf1', version_detail: /* @VERSION_DETAIL */ '1.0.4-hf2',
version_name: /* @VERSION_NAME */ 'Ghost-Dog', version_name: /* @VERSION_NAME */ 'Ghost-Dog',
}; };
@@ -122,13 +122,13 @@ export const useDriveItem = (id: string) => {
})); }));
} }
// set children and remove duplicates // set children and remove duplicates
setChildren(prev => [ setChildren(prev => {
...prev, // Create a Map for existing IDs for fast lookups
...details.children.filter( const existingIds = new Map(prev.map(item => [item.id, true]));
(item, index, self) =>
index === self.findIndex(t => t.id === item.id), // Filter children while adding them to the state
), return [...prev, ...details.children.filter(item => !existingIds.has(item.id))];
]); });
} catch (e) { } catch (e) {
// set pagination end to true // set pagination end to true
set(DriveItemPagination, prev => ({ set(DriveItemPagination, prev => ({
@@ -140,7 +140,7 @@ export const useDriveItem = (id: string) => {
} finally { } finally {
set(DriveItemPagination, prev => ({ set(DriveItemPagination, prev => ({
...prev, ...prev,
page: (prev.page + prev.limit), page: prev.page + prev.limit,
})); }));
} }
setLoading(false); setLoading(false);