Stubs tests. Updates types for controls.
This commit is contained in:
parent
32922b3f85
commit
85dc3028b4
33 changed files with 1391 additions and 1191 deletions
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue