0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-25 02:31:59 -05:00

Fixed useEffect warnings

This commit is contained in:
Simon Backx 2022-07-08 12:55:02 +02:00
parent 99f0038633
commit 54344c218e
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ import {useEffect} from 'react';
function AuthFrame({adminUrl, onLoad}) {
useEffect(function () {
onLoad();
}, []);
}, [onLoad]);
const iframeStyle = {
display: 'none'

View file

@ -52,7 +52,7 @@ const Form = (props) => {
});
})
.run();
}, [editor]);
}, [editor, props.isEdit]);
const focused = editor?.isFocused || !editor?.isEmpty;