Skip to content

Commit

Permalink
pluralize getEnabledFeature
Browse files Browse the repository at this point in the history
  • Loading branch information
ousmaneo committed Aug 6, 2021
1 parent 869ef2d commit 22084b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graylog2-web-interface/src/util/AppConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ const appConfig = (): AppConfigs => {
return (window.appConfig || {}) as AppConfigs;
};

const getEnabledFeature = () => {
const getEnabledFeatures = () => {
return Immutable.Map(appConfig().featureFlags)
.filter((value) => value.trim().toLowerCase() === 'on')
.keySeq().toList()
.filter((s) => typeof s === 'string');
};

const AppConfig = {
features: getEnabledFeature(),
features: getEnabledFeatures(),
gl2ServerUrl() {
if (typeof (GRAYLOG_API_URL) !== 'undefined') {
// The GRAYLOG_API_URL variable will be set by webpack via the DefinePlugin.
Expand Down

0 comments on commit 22084b9

Please sign in to comment.