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

metadata fixes

This commit is contained in:
Matthias Kretschmann 2019-02-13 20:41:59 +01:00
parent 9c5682afe3
commit 6d6f791e08
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 14 additions and 4 deletions

View File

@ -17,7 +17,16 @@ const AssetModel = {
compression: null,
contentType: null,
workExample: null,
contentUrls: [],
files: [
{
url: null,
checksum: null,
checksumType: null,
contentLength: null,
resourceId: null
}
],
categories: [],
links: [
{
name: null,

View File

@ -118,13 +118,13 @@ class Publish extends Component<{}, PublishState> {
name: '',
dateCreated: new Date(),
description: '',
files: [''],
files: [],
price: 0,
author: '',
type: 'dataset' as AssetType,
license: '',
copyrightHolder: '',
categories: [''],
categories: [],
isPublishing: false,
isPublished: false
})
@ -147,9 +147,10 @@ class Publish extends Component<{}, PublishState> {
author: this.state.author,
license: this.state.license,
copyrightHolder: this.state.copyrightHolder,
contentUrls: [this.state.files],
files: [this.state.files],
price: this.state.price,
type: this.state.type,
categories: [this.state.categories],
size: '',
encoding: '',
compression: undefined,