ensure the form editor is ready before attempting to update example data w/ burnettk (#1639)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
This commit is contained in:
parent
928273c034
commit
3de5fb34a2
|
@ -189,7 +189,7 @@ export default function ReactFormBuilder({
|
|||
|
||||
// Auto save example data changes
|
||||
useEffect(() => {
|
||||
if (baseFileName !== '') {
|
||||
if (baseFileName !== '' && ready) {
|
||||
saveFile(new File([debouncedFormData], baseFileName + DATA_EXTENSION));
|
||||
}
|
||||
}, [debouncedFormData, baseFileName, saveFile, ready]);
|
||||
|
|
Loading…
Reference in New Issue