Skip to content

Commit

Permalink
fix: fix for when trying to save a local document
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmacdonald committed Jun 6, 2019
1 parent c526fef commit b225a9a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ function saveWrap(writer) {
if (_writer === undefined) {
initDialogs(writer)
}

if (_repo === undefined && _path === undefined) {
_repo = '';
_path = '';
}

ReactDOM.render(
<GitDialog action="save" />,
document.querySelector('#'+renderId)
Expand Down

0 comments on commit b225a9a

Please sign in to comment.