🔇 Removing some frontend console noise

This commit is contained in:
Eric Doughty-Papassideris
2024-06-04 19:48:47 +02:00
committed by ericlinagora
parent 90d4719e22
commit be574fc39f
3 changed files with 5 additions and 9 deletions
@@ -68,7 +68,7 @@ export const Button = (props: ButtonProps) => {
props.className props.className
} }
disabled={disabled} disabled={disabled}
{..._.omit(props, 'loading', 'children', 'className')} {..._.omit(props, 'loading', 'children', 'className', 'icon')}
> >
{props.loading && ( {props.loading && (
<> <>
@@ -51,8 +51,6 @@ class FeatureTogglesService {
} }
public setFeaturesFromCompanyPlan(plan: { features: { [key: string]: FeatureValueType } }): void { public setFeaturesFromCompanyPlan(plan: { features: { [key: string]: FeatureValueType } }): void {
console.debug("Setting company features");
console.debug(plan);
for (const [featureName, defaultValue] of availableFeaturesWithDefaults) { for (const [featureName, defaultValue] of availableFeaturesWithDefaults) {
this.setActiveFeatureName( this.setActiveFeatureName(
featureName, featureName,
@@ -72,9 +70,7 @@ class FeatureTogglesService {
} }
public isActiveFeatureName(featureName: FeatureNames) { public isActiveFeatureName(featureName: FeatureNames) {
const b = this.activeFeatureNames.includes(featureName); return this.activeFeatureNames.includes(featureName);
console.debug(`Feature ${featureName} is ${b}`);
return b;
} }
public getFeatureValue<T>(featureName: FeatureNames): T { public getFeatureValue<T>(featureName: FeatureNames): T {
@@ -206,7 +206,7 @@ export default memo(
}, },
}) })
} }
} }
function draggableMarkup(index: number, child: any) { function draggableMarkup(index: number, child: any) {
@@ -226,13 +226,13 @@ export default memo(
isMobile ? ( isMobile ? (
<DocumentRow {...commonProps} /> <DocumentRow {...commonProps} />
) : ( ) : (
<Draggable id={index}> <Draggable id={index} key={index}>
<DocumentRow {...commonProps} /> <DocumentRow {...commonProps} />
</Draggable> </Draggable>
) )
); );
} }
return ( return (
<> <>