mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-10 23:25:31 +08:00
Merge pull request #946 from okriuchykhin/ok_SCI_1875_v3
Fix addons display in info modal [SCI-1875]
This commit is contained in:
commit
9fd1f81f20
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue