~vpzom/bracketmonster

c702ab3b095fbc3c8ddb27e3a94e9d566984925b — Colin Reeder 5 months ago 7cf64d0
add missing state initialization
M rosebush/src/client/pages/dialog/bracketInfoEdit.tsx => rosebush/src/client/pages/dialog/bracketInfoEdit.tsx +5 -0
@@ 17,6 17,11 @@ interface PageState {
}

export default class BracketInfoEditPage extends Component<PageProps, PageState> {
	public constructor() {
		super();
		this.state = {bracket: Data.loading};
	}
	
	public render(props: PageProps, state: PageState) {
		return <Data state={state.bracket}>{this.renderContent}</Data>;
	}

M rosebush/src/client/pages/dialog/matchEdit.tsx => rosebush/src/client/pages/dialog/matchEdit.tsx +5 -0
@@ 19,6 19,11 @@ interface PageState {
}

export default class BracketInfoEditPage extends Component<PageProps, PageState> {
	public constructor() {
		super();
		this.state = {bracket: Data.loading};
	}

	public render(props: PageProps, state: PageState) {
		return <Data state={state.bracket}>{this.renderContent}</Data>;
	}