This commit is contained in:
root committed 2025-10-10 10:19:53 +00:00
commit 9313c01637
3 files changed
+595 -83

No files matched your search

+8
View File
@@ -54,6 +54,14 @@ export default function Stacks() {
const stacksByIdRef = useRef(new Map());
useEffect(() => {
if (maintenanceLocked) {
setLoading(false);
setStacks([]);
setSelectedStackIds([]);
}
}, [maintenanceLocked]);
const mergeStackState = useCallback((previousStacks, incomingStacks) => {
const prevMap = new Map(previousStacks.map((stack) => [stack.Id, stack]));
const sortedIncoming = [...incomingStacks].sort((a, b) => a.Name.localeCompare(b.Name));