Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
propNames.some(propNames, name => {
const propValue = get(props, name)
return (
isLoaded(propValue) &&
(isEmpty(propValue) ||
(Array.isArray(propValue) && !Object.keys(propValue).length))
)
}),
component
some(propNames, name => !isLoaded(get(props, name)))
)
return spinnerWhile(props => some(propNames, name => !isLoaded(props[name])))
}
some(propsNames, name => {
const propValue = get(props, name)
return (
isLoaded(propValue) &&
(isEmpty(propValue) || (isArray(propValue) && !size(propValue)))
)
}),
component
some(propsNames, name => {
const propValue = get(props, name)
return (
isLoaded(propValue) &&
(isEmpty(propValue) || (isArray(propValue) && !size(propValue)))
)
}),
component
propNames.some(name => !isLoaded(get(props, name)))
)
(projectEvents, displayNames) => {
if (!isLoaded(projectEvents)) {
return projectEvents
}
const events = map(projectEvents, event => {
const createdBy = get(event, 'createdBy')
if (createdBy) {
return {
...event,
createdBy: get(displayNames, createdBy, createdBy)
}
}
return event
})
if (displayNames && events) {
return groupBy(events, event =>
formatDate(invoke(get(event, 'createdAt'), 'toDate'))
)