map_list: fixed setting initial data

This commit is contained in:
muerwre 2018-12-06 12:01:35 +07:00
parent 0c51dc44df
commit 3d718b5a2c
4 changed files with 5 additions and 9 deletions

View file

@ -90,8 +90,11 @@ function* loadMapSaga(path) {
const map = yield call(getStoredMap, { name: path });
if (map) {
yield editor.clearAll();
yield editor.setData(map);
yield editor.fitDrawing();
yield editor.setInitialData();
yield put(setChanged(false));
}