Skip to content

Commit 8818d30

Browse files
committed
Update var name
1 parent 0d07e65 commit 8818d30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

assets/js/admin-pull.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ document.addEventListener( 'DOMContentLoaded', async function () {
100100
);
101101
const dropdown = container.querySelector( '.searchable-select__dropdown' );
102102

103-
const itemss = await fetch( '/wp-admin/admin-ajax.php', {
103+
const pullConnectionItems = await fetch( '/wp-admin/admin-ajax.php', {
104104
method: 'POST',
105105
headers: {
106106
'Content-Type': 'application/x-www-form-urlencoded',
@@ -122,7 +122,7 @@ document.addEventListener( 'DOMContentLoaded', async function () {
122122
const connection_id = params.get( 'connection_id' );
123123

124124
if ( connection_id ) {
125-
const connection = itemss.find(
125+
const connection = pullConnectionItems.find(
126126
( item ) => item.id === connection_id
127127
);
128128

@@ -162,7 +162,7 @@ document.addEventListener( 'DOMContentLoaded', async function () {
162162
}
163163

164164
function showDropdown() {
165-
createDropdownItems( itemss );
165+
createDropdownItems( pullConnectionItems );
166166
dropdown.style.display = 'block';
167167
}
168168

@@ -171,7 +171,7 @@ document.addEventListener( 'DOMContentLoaded', async function () {
171171
}
172172

173173
function filterItems( searchTerm ) {
174-
const filteredItems = itemss.filter( ( item ) =>
174+
const filteredItems = pullConnectionItems.filter( ( item ) =>
175175
item.toLowerCase().includes( searchTerm.toLowerCase() )
176176
);
177177
createDropdownItems( filteredItems );

0 commit comments

Comments
 (0)