Skip to content

Commit

Permalink
Remove default schemaURI when subject is custom and not predefined (#819
Browse files Browse the repository at this point in the history
)
  • Loading branch information
kaysiz authored Oct 9, 2023
1 parent aa6d49e commit 2d4c384
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/components/doi-subject.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ export default Component.extend({
} else {
this.fragment.set('subject', value);
this.setScheme(null);
this.set('schemeUri', null);
this.fragment.set('subjectSchemeUri', null);
this.setSchemeUri(null);
this.setClassificationCode(null);
this.set('oecdSelected', false);
}
Expand Down
2 changes: 1 addition & 1 deletion app/models/subject.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default Fragment.extend(Validations, {
subject: attr('string'),
subjectScheme: attr('string', { defaultValue: null }),
schemeUri: attr('string', { defaultValue: null }),
valueUri: attr('string', { defaultValue: "" }),
valueUri: attr('string', { defaultValue: null }),
classificationCode: attr('string', { defaultValue: null }),
lang: attr('string', { defaultValue: null }),
subjectSchemeUri: computed('schemeUri', function () {
Expand Down

0 comments on commit 2d4c384

Please sign in to comment.