SeaMammals/index.tsx

Reviewed By: passy

Differential Revision: D17258652

fbshipit-source-id: 0c7931c3e5a619cb8d06703aaf9e276458ef38f4
This commit is contained in:
John Knox
2019-09-09 06:49:30 -07:00
committed by Facebook Github Bot
parent 6aab0bd826
commit c8c027150a

View File

@@ -72,7 +72,7 @@ export default class SeaMammals extends FlipperPlugin<
});
state = {
selectedID: null,
selectedID: null as string | null,
};
render() {
@@ -90,8 +90,7 @@ export default class SeaMammals extends FlipperPlugin<
/>
))}
<DetailSidebar>
{typeof selectedID === 'string' &&
renderSidebar(persistedState[selectedID])}
{selectedID && renderSidebar(persistedState[selectedID])}
</DetailSidebar>
</SeaMammals.Container>
);