mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 11:45:18 +08:00
fix(AboutScinoteModal): Enable react optimizations
Children generated within a loop or by an iterator need to be passed a unique `key` property so React can properly watch their updates and perform the necessary actions. Signed-off-by: Adrian Oprea <adrian@oprea.rocks>
This commit is contained in:
parent
91468faaf9
commit
12fd630d0c
1 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue