Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Guy Sartorelli <[email protected]>
  • Loading branch information
n8-dev and GuySartorelli authored Jan 6, 2025
1 parent 6492fa3 commit 074f503
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') {
"LinkField.LINK_DRAFT_TITLE": "Link has draft changes",
"LinkField.LINK_MODIFIED_LABEL": "Modified",
"LinkField.LINK_MODIFIED_TITLE": "Link has unpublished changes",
"LinkField.SAVE_RECORD_FIRST": "Cannot add link until the record has been saved",
"LinkField.SAVE_RECORD_FIRST_MULTI": "Cannot add links until the record has been saved",
"LinkField.SAVE_RECORD_FIRST": "Cannot add links until the record has been saved",
"LinkField.SAVE_RECORD_FIRST_SINGLE": "Cannot add link until the record has been saved",
"LinkField.SAVE_SUCCESS": "Saved link",
"LinkField.SORT_ERROR": "Unable to sort links",
"LinkField.SORT_SUCCESS": "Updated link sort order"
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/LinkField/LinkField.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,8 @@ const LinkField = ({
const renderModal = !loadingError && !saveRecordFirst && Boolean(editingID);
const loadingErrorText = i18n._t('LinkField.FAILED_TO_LOAD_LINKS', 'Failed to load link(s)');
const saveRecordFirstText = isMulti
? i18n._t('LinkField.SAVE_RECORD_FIRST_MULTI', 'Cannot add links until the record has been saved')
: i18n._t('LinkField.SAVE_RECORD_FIRST', 'Cannot add link until the record has been saved');
? i18n._t('LinkField.SAVE_RECORD_FIRST', 'Cannot add links until the record has been saved')
: i18n._t('LinkField.SAVE_RECORD_FIRST_SINGLE', 'Cannot add link until the record has been saved');
const links = renderLinks();

return <LinkFieldContext.Provider value={{
Expand Down

0 comments on commit 074f503

Please sign in to comment.