now it really works!

This commit is contained in:
Joeri Exelmans 2025-05-13 20:56:16 +02:00
parent c31ba88dfd
commit 174bab79e4
5 changed files with 55 additions and 34 deletions

View file

@ -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>