Skip to content

Commit

Permalink
console: Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ryaplots committed Sep 3, 2024
1 parent 63ae516 commit 5441179
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/webui/components/key-value-map/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const Entry = ({
value={indexAsKey ? value : value.value}
readOnly={readOnly}
code
options={options ? newOptions ?? options : undefined}
options={options ? (newOptions ?? options) : undefined}
{...additionalInputPropsRest}
/>
{showRemoveButton && (
Expand Down
2 changes: 1 addition & 1 deletion pkg/webui/components/table/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const Tabular = ({
const paginatedData = handlePagination(data)
const rows = paginatedData.map((row, rowIndex) => {
// If the whole table is disabled each row should be as well.
const rowClickable = !clickable ? false : row._meta?.clickable ?? clickable
const rowClickable = !clickable ? false : (row._meta?.clickable ?? clickable)

return (
<Table.Row
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ const GatewayConnectionSettings = () => {
(values, profile, entityId, isNonSharedProfile) => ({
...values.wifi_profile,
...(isNonSharedProfile && { ...profile.data }),
profile_id: isNonSharedProfile ? 'non-shared' : selectedManagedGateway.wifi_profile_id ?? '',
profile_id: isNonSharedProfile
? 'non-shared'
: (selectedManagedGateway.wifi_profile_id ?? ''),
_override: !Boolean(profile) && hasWifiProfileSet,
_profile_of: entityId ?? '',
}),
Expand Down

0 comments on commit 5441179

Please sign in to comment.