Fix console error when uploading whole dictionary
This commit is contained in:
parent
10d2159262
commit
a1ea105f66
|
@ -80,7 +80,9 @@ export function uploadWholeDictionary(asNew = false) {
|
||||||
dictionary,
|
dictionary,
|
||||||
}, remoteId => {
|
}, remoteId => {
|
||||||
window.currentDictionary.externalID = remoteId;
|
window.currentDictionary.externalID = remoteId;
|
||||||
document.getElementById('publicLink').value = document.domain + window.location.pathname + remoteId.toString();
|
if (document.getElementById('publicLink')) {
|
||||||
|
document.getElementById('publicLink').value = getPublicLink();
|
||||||
|
}
|
||||||
saveDictionary(false);
|
saveDictionary(false);
|
||||||
addMessage('Dictionary Uploaded Successfully');
|
addMessage('Dictionary Uploaded Successfully');
|
||||||
renderChangeDictionaryOptions();
|
renderChangeDictionaryOptions();
|
||||||
|
|
Loading…
Reference in New Issue