mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
metadata fixes
This commit is contained in:
parent
9c5682afe3
commit
6d6f791e08
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user