mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
map_list: fixed setting initial data
This commit is contained in:
parent
0c51dc44df
commit
3d718b5a2c
4 changed files with 5 additions and 9 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue