🔖 Release Version 1.0.4-hf2
This commit is contained in:
+1
-5
@@ -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()) {
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user