|
@@ -109,7 +109,7 @@ class AudioRoutePickerDialog extends Component<Props, State> {
|
109
|
109
|
state = {
|
110
|
110
|
/**
|
111
|
111
|
* Available audio devices, it will be set in
|
112
|
|
- * {@link #componentWillMount()}.
|
|
112
|
+ * {@link #componentDidMount()}.
|
113
|
113
|
*/
|
114
|
114
|
devices: []
|
115
|
115
|
};
|
|
@@ -132,7 +132,7 @@ class AudioRoutePickerDialog extends Component<Props, State> {
|
132
|
132
|
*
|
133
|
133
|
* @inheritdoc
|
134
|
134
|
*/
|
135
|
|
- componentWillMount() {
|
|
135
|
+ componentDidMount() {
|
136
|
136
|
AudioMode.getAudioDevices().then(({ devices, selected }) => {
|
137
|
137
|
const audioDevices = [];
|
138
|
138
|
|