@dxos/react-ui-canvas-compute 0.8.1-staging.391c573 → 0.8.1-staging.5be625a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1366,7 +1366,7 @@ var databaseShape = {
1366
1366
  // packages/ui/react-ui-canvas-compute/src/shapes/Function.tsx
1367
1367
  import React12, { useCallback as useCallback3, useRef as useRef4 } from "react";
1368
1368
  import { AnyOutput, FunctionInput } from "@dxos/conductor";
1369
- import { getSnapshot, S as S11 } from "@dxos/echo-schema";
1369
+ import { getSnapshot, isInstanceOf, S as S11 } from "@dxos/echo-schema";
1370
1370
  import { FunctionType, ScriptType } from "@dxos/functions/types";
1371
1371
  import { useClient } from "@dxos/react-client";
1372
1372
  import { Filter, makeRef, parseId } from "@dxos/react-client/echo";
@@ -1394,7 +1394,7 @@ var TextInputComponent2 = ({ shape, title, ...props }) => {
1394
1394
  }
1395
1395
  const space = client.spaces.get(spaceId);
1396
1396
  const object = space?.db.getObjectById(objectId);
1397
- if (!space || !(object instanceof ScriptType)) {
1397
+ if (!space || !isInstanceOf(ScriptType, object)) {
1398
1398
  return;
1399
1399
  }
1400
1400
  const { objects: [fn] } = await space.db.query(Filter.schema(FunctionType, {