Fix Save button not appearing on edit post screen (#7360)

This commit is contained in:
Daniel Espino García 2023-05-23 17:39:27 +02:00 committed by GitHub
parent 3cad740d67
commit 83e5ca835d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,14 +79,7 @@ const EditPost = ({componentId, maxPostSize, post, closeButtonId, hasFilesAttach
const isTablet = useIsTablet();
useEffect(() => {
setButtons(componentId, {
rightButtons: [{
color: theme.sidebarHeaderTextColor,
text: intl.formatMessage({id: 'edit_post.save', defaultMessage: 'Save'}),
...RIGHT_BUTTON,
enabled: false,
}],
});
toggleSaveButton(false);
}, []);
useEffect(() => {