-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor structure & categories field #2156
Refactor structure & categories field #2156
Conversation
import {superdeskApi} from '../../../superdeskApi'; | ||
import {IFieldGetter} from '.'; | ||
|
||
export const getPlaceField: IFieldGetter = () => ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IFieldGetter
doesn't server any purpose here compared to
const getPlaceField = (): IFieldDefinition => {...}
}, | ||
}, | ||
{ | ||
fieldId: 'agendas', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be present in the refactored code too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I've deleted it on accident
d0803e2
into
superdesk:authoring-react-planning
STT-63
Front-end checklist
memo
orPureComponent
to define new React components (and updates existing usages in modified code segments)lodash.get
with optional chaining and nullish coalescing for modified code segmentssuperdeskApi
)superdesk-ui-framework
andsuperdeskApi
when possible instead of using ones defined in this repository.planningApi
where it is possible to usesuperdeskApi
planningApi
)