Stubs tests. Updates types for controls.

This commit is contained in:
Steve Ruiz 2021-06-25 11:28:52 +01:00
parent 32922b3f85
commit 85dc3028b4
33 changed files with 1391 additions and 1191 deletions

View file

@ -82,8 +82,11 @@ export default function CodePanel(): JSX.Element {
let error = null
try {
const { shapes, controls } = generateFromCode(state.data, data.code)
state.send('GENERATED_FROM_CODE', { shapes, controls })
generateFromCode(state.data, data.code).then(
({ shapes, controls }) => {
state.send('GENERATED_FROM_CODE', { shapes, controls })
}
)
} catch (e) {
console.error('Got an error!', e)
error = { message: e.message, ...getErrorLineAndColumn(e) }

File diff suppressed because it is too large Load diff