Skip to content

Commit

Permalink
update default value in hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
philipewingatlassian committed May 8, 2024
1 parent 95e36df commit 1a73190
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/src/hooks/useFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { DefaultErrorTypes, ErrorTypes } from '../resolverTypes';
export const useFeatures = (): [FeaturesList, boolean, ErrorTypes | undefined] => {
const [features, setFeatures] = useState<FeaturesList>({
[GitlabFeaturesEnum.SEND_STAGING_EVENTS]: false,
[GitlabFeaturesEnum.DATA_COMPONENT_TYPES]: false,
});
const [loading, setLoading] = useState<boolean>(false);
const [error, setError] = useState<ErrorTypes>();
Expand Down

0 comments on commit 1a73190

Please sign in to comment.