Fix sandbox plugin initialisation

Summary: Fixes https://github.com/facebook/flipper/issues/1515

Reviewed By: passy

Differential Revision: D23572769

fbshipit-source-id: a541e2b4f626f520f39d21c3bf05d43ed919feb8
This commit is contained in:
John Knox
2020-09-08 08:31:38 -07:00
committed by Facebook GitHub Bot
parent aeebec5cd7
commit fdf9570cb7

View File

@@ -73,7 +73,7 @@ export default class SandboxView extends FlipperPlugin<
init() { init() {
this.client.call('getSandbox', {}).then((results: Array<Sandbox>) => { this.client.call('getSandbox', {}).then((results: Array<Sandbox>) => {
this.dispatchAction({results, type: 'UpdateSandboxes'}); this.setState({sandboxes: results});
}); });
} }