Skip to content

Commit

Permalink
FIX: Error in adapter (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiRo1310 authored Dec 2, 2024
1 parent a4c4a40 commit 5bdc2a2
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion admin/build/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions admin/build/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion admin/src/pages/AppContentHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class MainActions extends Component<PropsMainActions> {
state: this.props.data.state,
usersInGroup: this.props.data.state.native.usersInGroup,
userActiveCheckbox: this.props.data.state.native.userActiveCheckbox,
activeMenu: this.props.data.state.activeMenu,
activeMenu: this.props.data.state.activeMenu || '',
}}
callback={this.props.callback}
/>
Expand Down
2 changes: 1 addition & 1 deletion admin/src/pages/AppContentHeaderTelegramUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class HeaderTelegramUsers extends Component<PropsHeaderTelegramUsers, StateHeade
<Checkbox
label={`${this.props.data.state.activeMenu} ${I18n.t('active')}`}
id="checkboxActiveMenu"
isChecked={this.menuActiveChecked()}
isChecked={this.menuActiveChecked() || false}
callback={this.clickCheckbox}
index={0}
/>
Expand Down
6 changes: 3 additions & 3 deletions admin/src/pages/AppContentTabSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Settings extends Component<PropsSettings> {
>
<Select
placeholder="placeholderInstance"
options={this.props.data.state.instances}
options={this.props.data.state.instances || []}
label={I18n.t('telegramInstance')}
name="instance"
selected={this.props.data.state.native.instance}
Expand Down Expand Up @@ -77,7 +77,7 @@ class Settings extends Component<PropsSettings> {
placeholder="Token Grafana"
callback={({ id, val }: EventInput) => this.props.callback.updateNative(id, val)}
id="tokenGrafana"
value={this.props.data.state.native.tokenGrafana}
value={this.props.data.state.native.tokenGrafana || ''}
/>
</Grid>
<Grid
Expand All @@ -101,7 +101,7 @@ class Settings extends Component<PropsSettings> {
<Checkbox
label={I18n.t('Active')}
id="checkboxNoValueFound"
isChecked={this.props.data.state.native.checkbox.checkboxNoValueFound}
isChecked={this.props.data.state.native.checkbox.checkboxNoValueFound || false}
callback={this.onClickCheckbox}
index={0}
/>
Expand Down
10 changes: 3 additions & 7 deletions build/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/main.js.map

Large diffs are not rendered by default.

0 comments on commit 5bdc2a2

Please sign in to comment.