mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 16:58:47 +01:00
Fix instance is actually object
This commit is contained in:
parent
52b18240fd
commit
01b5f35f1d
1 changed files with 2 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue