Skip to content

Commit

Permalink
Fix regression in cloud storage import of "Filter lists" pane
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Jul 4, 2023
1 parent 083a318 commit 80b3f3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/3p-filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -836,14 +836,14 @@ self.cloud.onPull = function fromCloudData(data, append) {
selectedSet.delete(listkey);
}
if ( selectedSet.size !== 0 ) {
const textarea = qs$('#lists .liEntry[data-role="import"] textarea');
const textarea = qs$('#lists .listEntry[data-role="import"] textarea');
const lines = append
? textarea.value.split(/[\n\r]+/)
: [];
lines.push(...selectedSet);
if ( lines.length !== 0 ) { lines.push(''); }
textarea.value = lines.join('\n');
dom.cl.toggle('#lists .liEntry[data-role="import"]', 'expanded', textarea.value !== '');
dom.cl.toggle('#lists .listEntry[data-role="import"]', 'expanded', textarea.value !== '');
}

renderWidgets();
Expand Down

0 comments on commit 80b3f3c

Please sign in to comment.