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

fix publishing nested categories in array

This commit is contained in:
Jernej Pregelj 2019-03-26 10:48:32 +01:00
parent 07f6d22a36
commit d134e025a4

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,