Fix masto undefined

This commit is contained in:
Lim Chee Aun 2023-02-24 12:25:05 +08:00
parent 01b5f35f1d
commit b7f80fb621

View file

@ -1039,6 +1039,7 @@ function Compose({
}
const Textarea = forwardRef((props, ref) => {
const { masto } = api();
const [text, setText] = useState(ref.current?.value || '');
const { maxCharacters, performSearch = () => {}, ...textareaProps } = props;
const snapStates = useSnapshot(states);