SeaMammals/index.tsx
Reviewed By: passy Differential Revision: D17258652 fbshipit-source-id: 0c7931c3e5a619cb8d06703aaf9e276458ef38f4
This commit is contained in:
committed by
Facebook Github Bot
parent
6aab0bd826
commit
c8c027150a
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user