You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Merge pull request #6735 from matrix-org/gsouquet/fix-18876
Fix state initialisation for DevicesPanel
This commit is contained in:
@@ -35,7 +35,7 @@ interface IProps {
|
||||
interface IState {
|
||||
devices: IMyDevice[];
|
||||
deviceLoadError?: string;
|
||||
selectedDevices?: string[];
|
||||
selectedDevices: string[];
|
||||
deleting?: boolean;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,14 @@ interface IState {
|
||||
export default class DevicesPanel extends React.Component<IProps, IState> {
|
||||
private unmounted = false;
|
||||
|
||||
constructor(props: IProps) {
|
||||
super(props);
|
||||
this.state = {
|
||||
devices: [],
|
||||
selectedDevices: [],
|
||||
};
|
||||
}
|
||||
|
||||
public componentDidMount(): void {
|
||||
this.loadDevices();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user