Skip to content

Commit

Permalink
Fix two new linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhose committed Oct 2, 2024
1 parent 76efa49 commit 6eb3917
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Form/Controls/EditInPlace/EditInPlace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export const EditInPlace = forwardRef<HTMLInputElement, Props>(
saveButtonRef.current?.blur();
await onSave?.(e);
dispatch(Event.Saved);
} catch (e) {
} catch {
// We don't really need to do anything here, we just don't want to display the
// 'saved' label, obviously. The user of the component can update the error to
// show what failed.
Expand Down
8 changes: 5 additions & 3 deletions src/components/Separator/Separator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ export const Separator = forwardRef(

useEffect(() => {
const style = ourRef.current?.style;
spacing
? style?.setProperty(SPACING_CUSTOM_PROP, spacing)
: style?.removeProperty(SPACING_CUSTOM_PROP);
if (spacing) {
style?.setProperty(SPACING_CUSTOM_PROP, spacing);
} else {
style?.removeProperty(SPACING_CUSTOM_PROP);
}
}, [spacing]);

return (
Expand Down

0 comments on commit 6eb3917

Please sign in to comment.