Fix keyboard save shortcut when saving a new file; closes #2427

This commit is contained in:
Dane Everitt 2020-09-27 09:30:24 -07:00
parent da0b527715
commit ff50940fa6
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -116,7 +116,13 @@ export default () => {
fetchContent={value => { fetchContent={value => {
fetchFileContent = value; fetchFileContent = value;
}} }}
onContentSaved={save} onContentSaved={() => {
if (action !== 'edit') {
setModalVisible(true);
} else {
save();
}
}}
/> />
</div> </div>
<div css={tw`flex justify-end mt-4`}> <div css={tw`flex justify-end mt-4`}>