1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

Merge pull request #37 from oceanprotocol/fix/publish-categories

fix publishing nested categories in array
This commit is contained in:
Jernej Pregelj 2019-03-26 10:55:53 +01:00 committed by GitHub
commit 5bf25d4622
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ interface PublishState {
type?: AssetType
license?: string
copyrightHolder?: string
categories?: string
categories?: string[]
tags?: string[]
isPublishing?: boolean
isPublished?: boolean
@ -43,7 +43,7 @@ class Publish extends Component<{}, PublishState> {
type: 'dataset' as AssetType,
license: '',
copyrightHolder: '',
categories: '',
categories: [],
isPublishing: false,
isPublished: false,
publishedDid: '',
@ -110,7 +110,7 @@ class Publish extends Component<{}, PublishState> {
type: 'dataset' as AssetType,
license: '',
copyrightHolder: '',
categories: '',
categories: [],
isPublishing: false,
isPublished: false,
currentStep: 1
@ -257,7 +257,7 @@ class Publish extends Component<{}, PublishState> {
files: this.state.files,
price: this.state.price,
type: this.state.type,
categories: [this.state.categories],
categories: this.state.categories,
size: '',
encoding: '',
compression: undefined,