mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Optima: show out name
This commit is contained in:
@@ -25,6 +25,7 @@ export function useOptimaPortalOutRef(portalTargetId: OptimaPortalId, debugCalle
|
||||
console.warn(`useOptimaPortalOut: ref.current is null for type ${portalTargetId} (called by ${debugCallerName})`);
|
||||
} else {
|
||||
setElement(portalTargetId, ref.current);
|
||||
ref.current.dataset['optimaOutId'] = portalTargetId.replace('optima-portal-', '');
|
||||
}
|
||||
return () => setElement(portalTargetId, null);
|
||||
}, [debugCallerName, portalTargetId]);
|
||||
|
||||
Reference in New Issue
Block a user