Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Fix empty board and examples list #1367

Merged
merged 2 commits into from
Nov 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/views/app/components/BoardConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class BoardConfig extends React.Component<IBoardConfigProps, React.Props<any>> {
this.state = {};
}

public UNSAFE_componentWillMount() {
public componentWillMount() {
this.props.loadInstalledBoards();
this.props.loadConfigItems();
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/app/components/BoardManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class BoardManager extends React.Component<IBoardManagerProps, IBoardManagerStat
this.typeUpdate = this.typeUpdate.bind(this);
}

public UNSAFE_componentWillMount() {
public componentWillMount() {
this.props.loadBoardPackages(false);
}

Expand Down
2 changes: 1 addition & 1 deletion src/views/app/components/ExampleTreeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ExampleTreeView extends React.Component<IExampleViewProps, IExampleViewSta
this.onExpand = this.onExpand.bind(this);
}

public UNSAFE_componentWillMount() {
public componentWillMount() {
this.props.loadExamples();
}

Expand Down
2 changes: 1 addition & 1 deletion src/views/app/components/LibraryManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class LibraryManager extends React.Component<ILibraryManagerProps, ILibraryManag
this.handleCheck = this.handleCheck.bind(this);
}

public UNSAFE_componentWillMount() {
public componentWillMount() {
this.props.loadLibraries(false);
}

Expand Down