From bbfc4356c8b84d9a589ba8b0e86e6e87bfcf8751 Mon Sep 17 00:00:00 2001 From: Mikhail Bodrov Date: Mon, 15 Jul 2024 10:33:37 +0300 Subject: [PATCH] fix: remove needless spread for array --- src/build/themeProcessors/customMedia/customMedia.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/build/themeProcessors/customMedia/customMedia.ts b/src/build/themeProcessors/customMedia/customMedia.ts index abee47bd8..09123046a 100644 --- a/src/build/themeProcessors/customMedia/customMedia.ts +++ b/src/build/themeProcessors/customMedia/customMedia.ts @@ -14,9 +14,7 @@ import { export const getUsingViewports = ( breakpoints: Breakpoints['breakpoints'], ): Vt => { - const usingViewports: Vt[number][] = [ - ...(Object.keys(breakpoints) as (keyof typeof breakpoints)[]), - ]; + const usingViewports: Vt[number][] = Object.keys(breakpoints) as (keyof typeof breakpoints)[]; return usingViewports.sort((a, b) => viewports.indexOf(a) > viewports.indexOf(b) ? 1 : -1,