File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
55and 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
Original file line number Diff line number Diff 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 = '' ,
Original file line number Diff line number Diff line change 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>" ,
You can’t perform that action at this time.
0 commit comments