@iobroker/adapter-react-v5 7.6.1 → 7.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1070,7 +1070,7 @@ function applyFilter(item, filters, lang, objects, context, counter, customFilte
1070
1070
  }
1071
1071
  if (!filteredOut && filters.role && common) {
1072
1072
  if (common) {
1073
- filteredOut = !(common.role && common.role.startsWith(context.role));
1073
+ filteredOut = !(typeof common.role === 'string' && common.role.startsWith(context.role));
1074
1074
  }
1075
1075
  else {
1076
1076
  filteredOut = true;
@@ -2064,6 +2064,7 @@ export class ObjectBrowserClass extends Component {
2064
2064
  stateChangedFrom: props.t('ra_state_changed_from'), // State changed from
2065
2065
  ownerGroup: props.t('ra_Owner group'),
2066
2066
  ownerUser: props.t('ra_Owner user'),
2067
+ showAll: props.t('ra_show_all'),
2067
2068
  deviceError: props.t('ra_Error'),
2068
2069
  deviceDisconnected: props.t('ra_Disconnected'),
2069
2070
  deviceConnected: props.t('ra_Connected'),
@@ -3008,7 +3009,7 @@ export class ObjectBrowserClass extends Component {
3008
3009
  this.filterTimer = setTimeout(() => this.onFilter(), 400);
3009
3010
  }, defaultValue: this.state.filter[name] || '', inputProps: { name, id: name }, displayEmpty: true },
3010
3011
  React.createElement(MenuItem, { key: "empty", value: "" },
3011
- React.createElement("span", { style: styles.selectNone }, this.texts[`filter_${name}`])),
3012
+ React.createElement("span", { style: styles.selectNone }, name === 'custom' ? this.texts.showAll : this.texts[`filter_${name}`])),
3012
3013
  values?.map(item => {
3013
3014
  let id;
3014
3015
  let _name;