Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kurudrive committed Jun 20, 2024
1 parent 515f84c commit fc9e444
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/admin/import-export/import-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default function ImportForm(props) {
!currentOptions.some((existingOption) =>
comparisonKey
? newOption[comparisonKey] ===
existingOption[comparisonKey]
existingOption[comparisonKey]
: newOption === existingOption
)
);
Expand Down
4 changes: 2 additions & 2 deletions src/admin/margin.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export default function AdminMargin() {
: vkBlocksOption
.margin_size[
marginValue
][deviceValue]
][deviceValue]
}
onChange={(newValue) => {
setVkBlocksOption({
Expand Down Expand Up @@ -196,7 +196,7 @@ export default function AdminMargin() {
: vkBlocksOption
.margin_size[
marginValue
].custom
].custom
}
onChange={(newValue) => {
setVkBlocksOption({
Expand Down
2 changes: 1 addition & 1 deletion src/components/code-mirror-css/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const CodeMirrorCss = (props) => {
? __(
'There is an error with your CSS structure.',
'vk-blocks'
)
)
: null
);
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ export const BodyArea = ({
? [
...(variationState[index].scope || []),
scopeOption.name,
]
]
: variationState[index].scope.filter(
(item) => item !== scopeOption.name
);
);
onChange('scope', newScope);
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ export default function VariationForm(props) {
? [
...(variation.scope || []),
scopeOption.name,
]
]
: variation.scope.filter(
(item) => item !== scopeOption.name
);
);
setVariation({ ...variation, scope: newScope });
}}
/>
Expand Down

0 comments on commit fc9e444

Please sign in to comment.