From 42512bcf6e36678749b443b5cb73a4112c650305 Mon Sep 17 00:00:00 2001 From: CalDescent <> Date: Fri, 11 Mar 2022 13:45:39 +0000 Subject: [PATCH] Fixed bugs when publishing, introduced with the new metadata features. --- qortal-ui-plugins/plugins/core/qdn/publish/publish.src.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qortal-ui-plugins/plugins/core/qdn/publish/publish.src.js b/qortal-ui-plugins/plugins/core/qdn/publish/publish.src.js index 03387e85..7dae160b 100644 --- a/qortal-ui-plugins/plugins/core/qdn/publish/publish.src.js +++ b/qortal-ui-plugins/plugins/core/qdn/publish/publish.src.js @@ -481,7 +481,7 @@ class PublishData extends LitElement { let uploadDataUrl = `/arbitrary/${this.service}/${registeredName}${urlSuffix}?${metadataQueryString}&apiKey=${this.getApiKey()}` if (identifier != null && identifier.trim().length > 0) { - uploadDataUrl = `/arbitrary/${service}/${registeredName}/${this.identifier}${urlSuffix}?${metadataQuery}&apiKey=${this.getApiKey()}` + uploadDataUrl = `/arbitrary/${service}/${registeredName}/${this.identifier}${urlSuffix}?${metadataQueryString}&apiKey=${this.getApiKey()}` } let uploadDataRes = await parentEpml.request('apiCall', { @@ -593,7 +593,10 @@ class PublishData extends LitElement { selectName(e) { let name = this.shadowRoot.getElementById('registeredName') this.selectedName = (name.value) - this.name = (name.value) + // Update the current name if one has been selected + if (name.length > 0) { + this.name = (name.value) + } this.fetchResourceMetadata(); }