Skip to content

Commit a63f58e

Browse files
committed
fix: keep example selected if deleting fails
1 parent f5a04cb commit a63f58e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

APIServer/public/js/GraphRedex.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,7 @@ export default class GraphRedex<N extends GRND, E extends GRED> {
993993
this.shower.reset();
994994
this.highlighted.clear();
995995
this.updateHighlightList();
996+
this.setupExampleSelector();
996997
(window as any).toggle(null);
997998
}
998999

@@ -1075,10 +1076,10 @@ export default class GraphRedex<N extends GRND, E extends GRED> {
10751076
})
10761077
.then(() => {
10771078
alert("removed");
1079+
this.curExample = null;
1080+
this.reset();
10781081
})
10791082
.catch(errorAlert);
1080-
this.curExample = null;
1081-
this.reset();
10821083
}
10831084
});
10841085

0 commit comments

Comments
 (0)