Fix instance is actually object

This commit is contained in:
Lim Chee Aun 2023-02-24 12:20:31 +08:00
parent 52b18240fd
commit 01b5f35f1d

View file

@ -105,7 +105,7 @@ function Compose({
hasOpener,
}) {
console.warn('RENDER COMPOSER');
const { masto } = api();
const { masto, instance } = api();
const [uiState, setUIState] = useState('default');
const UID = useRef(draftStatus?.uid || uid());
console.log('Compose UID', UID.current);
@ -113,8 +113,7 @@ function Compose({
const currentAccount = getCurrentAccount();
const currentAccountInfo = currentAccount.info;
const instance = getCurrentInstance();
const { configuration } = instance;
const { configuration } = getCurrentInstance();
console.log('⚙️ Configuration', configuration);
const {