chore: bump version (#2253)

This commit is contained in:
Himself65
2023-05-08 11:23:55 +08:00
committed by GitHub
parent 29cbbf5c97
commit d795fb6b37
8 changed files with 200 additions and 208 deletions

View File

@@ -1,6 +1,6 @@
import { RequestError } from '@affine/workspace/affine/api';
import type { NextRouter } from 'next/router';
import type { ErrorInfo } from 'react';
import type { ErrorInfo, ReactNode } from 'react';
import type React from 'react';
import { Component } from 'react';
@@ -77,7 +77,7 @@ export class AffineErrorBoundary extends Component<
console.error('Uncaught error:', error, errorInfo);
}
public render() {
public render(): ReactNode {
if (this.state.error) {
const error = this.state.error;
if (error instanceof PageNotFoundError) {