Skip to content

Commit 67c1a71

Browse files
committed
Make sure whenReady() ignores previous errors
1 parent e68c42f commit 67c1a71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ts/core/MathDocument.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ export abstract class AbstractMathDocument<N, T, D>
935935
* @override
936936
*/
937937
public whenReady(action: () => any): Promise<any> {
938-
return (this._readyPromise = this._readyPromise.then(() => {
938+
return (this._readyPromise = this._readyPromise.catch((_) => {}).then(() => {
939939
//
940940
// Cache old _readyPromise and replace it with a resolved
941941
// promise in case action() calls whenReady(), so we don't get

0 commit comments

Comments
 (0)