Skip to content

Commit 1cb02d9

Browse files
committed
Fix screenshot
1 parent c7a11f2 commit 1cb02d9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/Dataset.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export default {
250250
// this.rdf.links = this.rdf.links || [];
251251
this.rdf.config = this.rdf.config || {};
252252
this.rdf.license = this.rdf.license || "CC-BY-4.0";
253-
if (rdf.covers) {
253+
if (rdf.covers && this.rdf.config._deposit) {
254254
files.screenshots = rdf.covers.map(c => {
255255
const baseUrl = `${this.client.baseURL}/record/${this.rdf.config._deposit.id}/files/`;
256256
const coverUrl = c.startsWith("http") ? c : new URL(c, baseUrl).href;

src/components/Upload.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ export default {
417417
await this.client.getCredential(true);
418418
419419
this.stepIndex = 2;
420+
this.$forceUpdate();
420421
});
421422
},
422423
async loadRdfFromURL(url) {

0 commit comments

Comments
 (0)