Skip to content

Commit

Permalink
fix(object view): load specific components after registry
Browse files Browse the repository at this point in the history
  • Loading branch information
thesophiaxu committed Dec 27, 2021
1 parent 32b74fc commit 6b235db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const AutoDynamicView = ({ object, callbacks, component, attributes, inli
const [DynamicViews, setDynamicViews] = React.useState({...window.unigraph.getState('registry/dynamicView').value, ...(component || {})});

React.useEffect(() => {
const cb = (newIts: any) => setDynamicViews(newIts);
const cb = (newIts: any) => setDynamicViews({...window.unigraph.getState('registry/dynamicView').value, ...(component || {})});
window.unigraph.getState('registry/dynamicView').subscribe(cb);

const cbsel = (sel: any) => {if (sel?.includes?.(object?.uid)) setIsSelected(true); else setIsSelected(false);};
Expand Down

0 comments on commit 6b235db

Please sign in to comment.