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,
|
compression: null,
|
||||||
contentType: null,
|
contentType: null,
|
||||||
workExample: null,
|
workExample: null,
|
||||||
contentUrls: [],
|
files: [
|
||||||
|
{
|
||||||
|
url: null,
|
||||||
|
checksum: null,
|
||||||
|
checksumType: null,
|
||||||
|
contentLength: null,
|
||||||
|
resourceId: null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
categories: [],
|
||||||
links: [
|
links: [
|
||||||
{
|
{
|
||||||
name: null,
|
name: null,
|
||||||
|
@ -118,13 +118,13 @@ class Publish extends Component<{}, PublishState> {
|
|||||||
name: '',
|
name: '',
|
||||||
dateCreated: new Date(),
|
dateCreated: new Date(),
|
||||||
description: '',
|
description: '',
|
||||||
files: [''],
|
files: [],
|
||||||
price: 0,
|
price: 0,
|
||||||
author: '',
|
author: '',
|
||||||
type: 'dataset' as AssetType,
|
type: 'dataset' as AssetType,
|
||||||
license: '',
|
license: '',
|
||||||
copyrightHolder: '',
|
copyrightHolder: '',
|
||||||
categories: [''],
|
categories: [],
|
||||||
isPublishing: false,
|
isPublishing: false,
|
||||||
isPublished: false
|
isPublished: false
|
||||||
})
|
})
|
||||||
@ -147,9 +147,10 @@ class Publish extends Component<{}, PublishState> {
|
|||||||
author: this.state.author,
|
author: this.state.author,
|
||||||
license: this.state.license,
|
license: this.state.license,
|
||||||
copyrightHolder: this.state.copyrightHolder,
|
copyrightHolder: this.state.copyrightHolder,
|
||||||
contentUrls: [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],
|
||||||
size: '',
|
size: '',
|
||||||
encoding: '',
|
encoding: '',
|
||||||
compression: undefined,
|
compression: undefined,
|
||||||
|
Loading…
Reference in New Issue
Block a user