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:
parent
99f0038633
commit
54344c218e
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ import {useEffect} from 'react';
|
|||
function AuthFrame({adminUrl, onLoad}) {
|
||||
useEffect(function () {
|
||||
onLoad();
|
||||
}, []);
|
||||
}, [onLoad]);
|
||||
|
||||
const iframeStyle = {
|
||||
display: 'none'
|
||||
|
|
|
@ -52,7 +52,7 @@ const Form = (props) => {
|
|||
});
|
||||
})
|
||||
.run();
|
||||
}, [editor]);
|
||||
}, [editor, props.isEdit]);
|
||||
|
||||
const focused = editor?.isFocused || !editor?.isEmpty;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue