From 6e8d07e9735a200f9ce895187613b74a964592bc Mon Sep 17 00:00:00 2001 From: Tissevert Date: Sun, 31 Jul 2022 16:34:49 +0200 Subject: [PATCH] Fix bug in grid loader --- js/Grid/IO.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/Grid/IO.js b/js/Grid/IO.js index 262d534..ac74835 100644 --- a/js/Grid/IO.js +++ b/js/Grid/IO.js @@ -14,12 +14,12 @@ function init() { } function load() { - Grid.clear(); - Mode.setEnabled(false, ['play', 'solve']); Async.run( Async.bind( File.pick({accept: 'text/json,.json'}), function(input) { + Grid.clear(); + Mode.setEnabled(false, ['play', 'solve']); return File.load(input.files[0]); }, function(data) {