diff --git a/apps/nextjs/src/components/board/items/widget-hover-metadata.ts b/apps/nextjs/src/components/board/items/widget-hover-metadata.ts index 0e913f5d4..22a75c9b3 100644 --- a/apps/nextjs/src/components/board/items/widget-hover-metadata.ts +++ b/apps/nextjs/src/components/board/items/widget-hover-metadata.ts @@ -115,12 +115,7 @@ export const collectWidgetHoverMetadata = ( return !skip && !hidden && !unchanged; }) .map(([key, optionDefinition]) => { - const formattedValue = formatOptionValue( - optionDefinition.type, - resolvedOptions[key], - optionDefinition, - t, - ); + const formattedValue = formatOptionValue(optionDefinition.type, resolvedOptions[key], optionDefinition, t); return { label: getOptionLabel(item.kind, key, t), value: formattedValue ?? "", @@ -142,7 +137,9 @@ const displayNameSources: DisplayNameSource[] = [ }, { matches: (item, options) => - item.kind === "clock" && Boolean(options.customTitleToggle) && String(options.customTitle ?? "").trim().length > 0, + item.kind === "clock" && + Boolean(options.customTitleToggle) && + String(options.customTitle ?? "").trim().length > 0, resolve: (_, options) => String(options.customTitle).trim(), }, ]; diff --git a/apps/nextjs/src/components/board/sections/content.tsx b/apps/nextjs/src/components/board/sections/content.tsx index 890673fde..3c3ca6ea0 100644 --- a/apps/nextjs/src/components/board/sections/content.tsx +++ b/apps/nextjs/src/components/board/sections/content.tsx @@ -19,7 +19,7 @@ export const SectionContent = () => { * @see https://github.com/homarr-labs/homarr/pull/1770 */ const sortedItems = useMemo(() => { - return [...items, ...innerSections].sort((itemA, itemB) => { + return [...items, ...innerSections].toSorted((itemA, itemB) => { if (itemA.yOffset === itemB.yOffset) { return itemA.xOffset - itemB.xOffset; }