From cf7c3be90ee8db85a72be2b7f1550cb90f8b520a Mon Sep 17 00:00:00 2001 From: Alex Taing Date: Thu, 26 Oct 2023 09:16:30 -0400 Subject: [PATCH] less plurals! --- packages/studio-ui/src/hooks/useInjectActiveStyles.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/studio-ui/src/hooks/useInjectActiveStyles.tsx b/packages/studio-ui/src/hooks/useInjectActiveStyles.tsx index ffe5315cf..df6909e46 100644 --- a/packages/studio-ui/src/hooks/useInjectActiveStyles.tsx +++ b/packages/studio-ui/src/hooks/useInjectActiveStyles.tsx @@ -13,7 +13,7 @@ import { StudioStore } from "../store/models/StudioStore"; export default function useInjectActiveStyles( iframeDocument: Document | undefined ) { - const [activeStylesFilepaths, loadedStyleFilepaths] = useStudioStore( + const [activeStyleFilepaths, loadedStyleFilepaths] = useStudioStore( (store) => [ getFilepathsOfActiveStyles(store), store.loadedStyles.loadedStyleFilepaths, @@ -25,7 +25,7 @@ export default function useInjectActiveStyles( if (!iframeDocument) { return; } - activeStylesFilepaths.forEach((styleFilepath) => { + activeStyleFilepaths.forEach((styleFilepath) => { injectStyleIntoIframe(iframeDocument, styleFilepath); }); @@ -39,7 +39,7 @@ export default function useInjectActiveStyles( * called before all user styles are added to Studio's * document head. */ - }, [iframeDocument, activeStylesFilepaths, loadedStyleFilepaths]); + }, [iframeDocument, activeStyleFilepaths, loadedStyleFilepaths]); } function getFilepathsOfActiveStyles(store: StudioStore): string[] {