Skip to content

Commit

Permalink
Fix setting source url in uploader after fetch (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdashlw authored Oct 12, 2023
1 parent c7c6d88 commit 1918e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function setupImageUpload() {
const [fileField, remoteUrl, scraperError] = $$('.js-scraper', form);
const descrEl = $('.js-image-descr-input', form);
const tagsEl = $('.js-image-tags-input', form);
const sourceEl = $$('.js-image-source', form).find(input => input.value === '');
const sourceEl = $$('.js-source-url', form).find(input => input.value === '');
const fetchButton = $('#js-scraper-preview');
if (!fetchButton) return;

Expand Down

0 comments on commit 1918e92

Please sign in to comment.