diff --git a/e2e/shared/create-homarr-container.ts b/e2e/shared/create-homarr-container.ts index 80e5646e0..fada1c440 100644 --- a/e2e/shared/create-homarr-container.ts +++ b/e2e/shared/create-homarr-container.ts @@ -1,5 +1,5 @@ import { GenericContainer, Wait } from "testcontainers"; -import { Environment } from "testcontainers/build/types"; +import type { Environment } from "testcontainers/build/types"; export const createHomarrContainer = ( options: { diff --git a/packages/api/src/router/board/grid-algorithm.ts b/packages/api/src/router/board/grid-algorithm.ts index ea155a4e5..78d7ab7fc 100644 --- a/packages/api/src/router/board/grid-algorithm.ts +++ b/packages/api/src/router/board/grid-algorithm.ts @@ -28,7 +28,7 @@ export const generateResponsiveGridFor = ({ }: GridAlgorithmInput): GridAlgorithmOutput => { const itemsOfCurrentSection = items .filter((item) => item.sectionId === sectionId) - .sort((itemA, itemB) => + .toSorted((itemA, itemB) => itemA.yOffset === itemB.yOffset ? itemA.xOffset - itemB.xOffset : itemA.yOffset - itemB.yOffset, ); const normalizedItems = normalizeItems(itemsOfCurrentSection, width);