Skip to content

Commit b3857f6

Browse files
committed
Merge branch 'hotfix/21.6.3'
2 parents b3b7ca0 + 5cd6014 commit b3857f6

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [21.6.3] - 2021-07-09
8+
### Fixed
9+
- [hotfix] Do not serialize empty node-license
10+
711
## [21.6.2] - 2021-07-02
812
### Fixed
913
- [hotfix] draft-registration's node-license validations
@@ -1766,7 +1770,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
17661770
### Added
17671771
- Quick Files
17681772

1769-
[Unreleased]: https://github.com/CenterForOpenScience/ember-osf-web/compare/21.6.2...develop
1773+
[Unreleased]: https://github.com/CenterForOpenScience/ember-osf-web/compare/21.6.3...develop
1774+
[21.6.3]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/21.6.3
17701775
[21.6.2]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/21.6.2
17711776
[21.6.1]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/21.6.1
17721777
[21.6.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/21.6.0

app/transforms/node-license.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,15 @@ export default class NodeLicenseTransform extends Transform {
3030
});
3131
}
3232

33-
serialize(value: NodeLicense): SerializedNodeLicense {
33+
serialize(value: NodeLicense): SerializedNodeLicense | undefined {
3434
if (!value) {
3535
return {};
3636
}
37+
// Setting this to undefined will prevent nodelicense from being serialized
38+
// in the draft registration metadata workflow if the user has not updated it.
39+
if (Object.entries(value).length === 0) {
40+
return undefined;
41+
}
3742

3843
const {
3944
copyrightHolders = '',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ember-osf-web",
3-
"version": "21.6.2",
3+
"version": "21.6.3",
44
"description": "Ember front-end for the Open Science Framework",
55
"license": "Apache-2.0",
66
"author": "Center for Open Science <support@cos.io>",

0 commit comments

Comments
 (0)