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,
|
||||
}, 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);
|
||||
addMessage('Dictionary Uploaded Successfully');
|
||||
renderChangeDictionaryOptions();
|
||||
|
|
Loading…
Reference in New Issue