@manuscripts/style-guide 1.4.5 → 1.4.6-LEAN-3030

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,12 +49,10 @@ const AffiliationsEditor = ({ affiliations, authorAffiliations, addAuthorAffilia
49
49
  const handleChoose = (0, react_1.useCallback)((value) => {
50
50
  if (value) {
51
51
  const selectedAffiliation = value;
52
- addAuthorAffiliation(selectedAffiliation.__isNew__
53
- ? selectedAffiliation.value
54
- : affiliations.get(selectedAffiliation.value) || '');
52
+ addAuthorAffiliation(selectedAffiliation.value);
55
53
  }
56
54
  setSearchText('');
57
- }, [addAuthorAffiliation, affiliations]);
55
+ }, [addAuthorAffiliation]);
58
56
  const options = (0, authors_1.affiliationsOptions)(affiliations, authorAffiliations);
59
57
  const active = authorAffiliations
60
58
  ? authorAffiliations.map((item) => item.data)
@@ -21,12 +21,10 @@ const AffiliationsEditor = ({ affiliations, authorAffiliations, addAuthorAffilia
21
21
  const handleChoose = useCallback((value) => {
22
22
  if (value) {
23
23
  const selectedAffiliation = value;
24
- addAuthorAffiliation(selectedAffiliation.__isNew__
25
- ? selectedAffiliation.value
26
- : affiliations.get(selectedAffiliation.value) || '');
24
+ addAuthorAffiliation(selectedAffiliation.value);
27
25
  }
28
26
  setSearchText('');
29
- }, [addAuthorAffiliation, affiliations]);
27
+ }, [addAuthorAffiliation]);
30
28
  const options = affiliationsOptions(affiliations, authorAffiliations);
31
29
  const active = authorAffiliations
32
30
  ? authorAffiliations.map((item) => item.data)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/style-guide",
3
3
  "description": "Shared components for Manuscripts applications",
4
- "version": "1.4.5",
4
+ "version": "1.4.6-LEAN-3030",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-style-guide",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -36,7 +36,7 @@
36
36
  "@formatjs/intl-relativetimeformat": "^4.5.9",
37
37
  "@formatjs/intl-utils": "^2.2.0",
38
38
  "@manuscripts/assets": "^0.6.2",
39
- "@manuscripts/transform": "1.5.4",
39
+ "@manuscripts/transform": "1.5.7-LEAN-3030",
40
40
  "@manuscripts/json-schema": "2.2.1",
41
41
  "@reach/tabs": "^0.11.2",
42
42
  "formik": "^2.2.9",