fix(frontend): Make sure the schema is infered when the component is mounted (#520)

This commit is contained in:
Faton Ramadani
2022-08-31 21:29:56 +02:00
committed by GitHub
parent f8e01eba82
commit a57519b386
@@ -168,6 +168,7 @@
let syncCode: NodeJS.Timer
onMount(() => {
inferSchema()
syncCode = setInterval(() => {
const newCode = editor?.getCode()
if (newCode && code != newCode) {