Fix Nanite Program Hub

This commit is contained in:
Aleksej Komarov
2020-04-19 19:52:24 +03:00
parent 789b22eda2
commit 2bfe0f24dc
2 changed files with 5 additions and 3 deletions
@@ -16,8 +16,10 @@ export const NaniteProgramHub = (props, context) => {
const [
selectedCategory,
setSelectedCategory,
] = useSharedState(context, 'category', Object.keys(programs)[0]);
const programsInCategory = programs[selectedCategory] || [];
] = useSharedState(context, 'category');
const programsInCategory = programs
&& programs[selectedCategory]
|| [];
return (
<Window resizable>
<Window.Content scrollable>
File diff suppressed because one or more lines are too long