now it really works!
This commit is contained in:
parent
c31ba88dfd
commit
174bab79e4
5 changed files with 55 additions and 34 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { getSymbol, getType, symbolFunction } from "dope2";
|
||||
|
||||
import { useContext, useEffect, useReducer, useRef, useState } from "react";
|
||||
import { CallBlock, type CallBlockState } from "./CallBlock";
|
||||
import { CallBlock, DeepError, type CallBlockState } from "./CallBlock";
|
||||
import { InputBlock, type InputBlockState } from "./InputBlock";
|
||||
import { Type } from "./Type";
|
||||
import { type Dynamic, type State2Props } from "./util/extra";
|
||||
|
|
@ -170,7 +170,7 @@ export function Editor({state, setState, onCancel, filter}: EditorProps) {
|
|||
return <>
|
||||
{renderBlock()}
|
||||
{
|
||||
(state.resolved && !(state.resolved instanceof Error))
|
||||
(state.resolved && !(state.resolved instanceof DeepError))
|
||||
? <div className="typeSignature">
|
||||
:: <Type type={getType(state.resolved)} />
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue