Skip to content

Commit

Permalink
fix: empty panel above 'Install Custom Extension' panel (#709)
Browse files Browse the repository at this point in the history
Co-authored-by: Johnny Almonte <[email protected]>
  • Loading branch information
johnny243 and johnny243 authored Oct 29, 2021
1 parent 76a149c commit 403fc3f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/assets/javascripts/preferences/panes/Extensions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,15 @@ export const Extensions: FunctionComponent<{
setExtensions(loadExtensions(application));
};

const visibleExtensions = extensions
.filter(extension => !['modal', 'rooms'].includes(extension.area));

return (
<PreferencesPane>
{extensions.length > 0 &&
{visibleExtensions.length > 0 &&
<PreferencesGroup>
{
extensions
.filter(extension => !['modal', 'rooms'].includes(extension.area))
visibleExtensions
.sort((e1, e2) => e1.name.toLowerCase().localeCompare(e2.name.toLowerCase()))
.map((extension, i) => (
<ExtensionItem
Expand Down

0 comments on commit 403fc3f

Please sign in to comment.