diff --git a/packages/unigraph-dev-explorer/src/components/ObjectEditor/ObjectEditor.tsx b/packages/unigraph-dev-explorer/src/components/ObjectEditor/ObjectEditor.tsx
index 00bc9d6d..42168766 100644
--- a/packages/unigraph-dev-explorer/src/components/ObjectEditor/ObjectEditor.tsx
+++ b/packages/unigraph-dev-explorer/src/components/ObjectEditor/ObjectEditor.tsx
@@ -490,40 +490,56 @@ export function ObjectEditorSelector({ currentUid, setCurrentUid, style }: any)
const [currentInputUid, setCurrentInputUid] = React.useState(currentUid || '');
- useEffectOnce(() => {
+ React.useEffect(() => {
window.unigraph.getReferenceables().then((refs: any) => setReferenceables(refs));
- });
+ }, []);
+ React.useEffect(() => {
+ console.log('Object Editor', { currentInputUid, currentSchema, currentSchemaSHName });
+ }, [currentInputUid]);
return (
-
- {
- setCurrentInputUid(e.target.value);
- }}
- value={currentInputUid}
- />
-
- Schema name:{' '}
-
- window.unigraph.getSchemas().then((schemas: Record) => {
- setCurrentSchema(schemas[schema]);
- setCurrentSchemaSHName(schema);
- })
- }
- value={currentSchema?._definition?.type['unigraph.id']}
- sx={{ width: '300px' }}
- />
-
-
+
+ {/*
+ Create a new object
+
+
+ window.unigraph.getSchemas().then((schemas: Record) => {
+ setCurrentSchema(schemas[schema]);
+ setCurrentSchemaSHName(schema);
+ })
+ }
+ value={currentSchema?._definition?.type['unigraph.id']}
+ sx={{ width: '300px' }}
+ />
+
+
+
+ or */}
+
+ Load an existing object
+
+ {
+ setCurrentInputUid(e.target.value);
+ }}
+ value={currentInputUid}
+ label="Object UID"
+ />
+
+
+
+
);
}
diff --git a/packages/unigraph-dev-explorer/src/components/ObjectView/ReferenceableSelector.tsx b/packages/unigraph-dev-explorer/src/components/ObjectView/ReferenceableSelector.tsx
index 5c647037..ae02022b 100644
--- a/packages/unigraph-dev-explorer/src/components/ObjectView/ReferenceableSelector.tsx
+++ b/packages/unigraph-dev-explorer/src/components/ObjectView/ReferenceableSelector.tsx
@@ -10,7 +10,7 @@ export function ReferenceableSelectorControlled({ referenceables, value, onChang
renderInput={(params) => (