Merge pull request #946 from okriuchykhin/ok_SCI_1875_v3

Fix addons display in info modal [SCI-1875]
This commit is contained in:
Adrian Oprea 2018-01-18 10:19:44 +02:00 committed by GitHub
commit 9fd1f81f20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -17,7 +17,7 @@ module ClientApi
def list_all_addons
Rails::Engine.subclasses
.select { |c| c.name.start_with?('Scinote') }
.map(&:parent)
.map { |c| c.parent.to_s }
end
end
end

View file

@ -30,7 +30,11 @@ export default (props: Props): Node => {
<strong>
<FormattedMessage id="general.addon_versions" />
</strong>
{addons.map((addon: string): Node => <p>{addon}</p>)}
{
addons.map(
(addon: string): Node => (<p key={addon}>{addon}</p>)
)
}
</span>
}
</Modal.Body>