Explorar o código

Remove async from switchContentWidthClickHandler

maeshinshin %!s(int64=2) %!d(string=hai) anos
pai
achega
4cceb37840
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/app/src/components/PageControls/PageControls.tsx

+ 1 - 1
apps/app/src/components/PageControls/PageControls.tsx

@@ -222,7 +222,7 @@ const PageControlsSubstance = (props: PageControlsSubstanceProps): JSX.Element =
     onClickDeleteMenuItem(pageToDelete);
   }, [onClickDeleteMenuItem, pageId, pageInfo, path, revisionId]);
 
-  const switchContentWidthClickHandler = useCallback(async(e: React.MouseEvent<HTMLInputElement>) => {
+  const switchContentWidthClickHandler = useCallback((e: React.MouseEvent<HTMLInputElement>) => {
     e.preventDefault();
 
     const newValue = !expandContentWidth;