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