Skip to content

Commit c1cb0d6

Browse files
Fix new JS lint errors
1 parent c165c13 commit c1cb0d6

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"file-size": "^1.0.0",
5858
"human-format": "^1.2.1",
5959
"loading-attribute-polyfill": "^2.1.1",
60+
"lodash": "^4.17.21",
6061
"progressbar.js": "^1.1.1",
6162
"react": "^18.3.1",
6263
"tippy.js": "^6.3.1"

src/js/components/global-transformations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ const GlobalTransformations = {
180180
/**
181181
* Get's the Global Transformation Elements string by Type.
182182
*
183-
* @param {string} type The type of Elements.
183+
* @param {string} type The type of Elements.
184184
* @return {string} A string with the Elements
185185
* @private
186186
*/

src/js/components/media-modal.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -126,17 +126,17 @@ if ( wp.media ) {
126126
if (
127127
typeof asset.resync !== 'undefined'
128128
) {
129-
asset.resync.forEach( function (
130-
newUpdateAsset
131-
) {
132-
const updateAttach =
133-
attachment.get(
134-
newUpdateAsset.id
129+
asset.resync.forEach(
130+
function ( newUpdateAsset ) {
131+
const updateAttach =
132+
attachment.get(
133+
newUpdateAsset.id
134+
);
135+
updateAttach.set(
136+
newUpdateAsset
135137
);
136-
updateAttach.set(
137-
newUpdateAsset
138-
);
139-
} );
138+
}
139+
);
140140
}
141141
if (
142142
typeof asset.fetch !== 'undefined'

src/js/components/tabs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const Tabs = {
7070
/**
7171
* Filter the active button.
7272
*
73-
* @param {Array} buttons All the buttons.
73+
* @param {Array} buttons All the buttons.
7474
* @return {*} The active button.
7575
*/
7676
filterActive( buttons ) {

0 commit comments

Comments
 (0)