Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
digibib
deichman
Commits
c03fa44c
Commit
c03fa44c
authored
Mar 03, 2021
by
Magnus Westergaard
Browse files
DEICH-5621
: Simplify conditional.
parent
b181575d
Changes
1
Hide whitespace changes
Inline
Side-by-side
deichman.no/components/DynamicList/DynamicList.js
View file @
c03fa44c
...
...
@@ -26,7 +26,7 @@ const DynamicList = ({
size
,
children
})
=>
{
const
numberOfItems
=
size
>
0
?
size
:
DEFAULT_SIZES
[
type
];
const
numberOfItems
=
size
||
DEFAULT_SIZES
[
type
];
const
itemsToDisplay
=
items
.
slice
(
0
,
numberOfItems
);
return
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment