🔇 Removing some frontend console noise
This commit is contained in:
committed by
ericlinagora
parent
90d4719e22
commit
be574fc39f
@@ -68,7 +68,7 @@ export const Button = (props: ButtonProps) => {
|
||||
props.className
|
||||
}
|
||||
disabled={disabled}
|
||||
{..._.omit(props, 'loading', 'children', 'className')}
|
||||
{..._.omit(props, 'loading', 'children', 'className', 'icon')}
|
||||
>
|
||||
{props.loading && (
|
||||
<>
|
||||
|
||||
@@ -51,8 +51,6 @@ class FeatureTogglesService {
|
||||
}
|
||||
|
||||
public setFeaturesFromCompanyPlan(plan: { features: { [key: string]: FeatureValueType } }): void {
|
||||
console.debug("Setting company features");
|
||||
console.debug(plan);
|
||||
for (const [featureName, defaultValue] of availableFeaturesWithDefaults) {
|
||||
this.setActiveFeatureName(
|
||||
featureName,
|
||||
@@ -72,9 +70,7 @@ class FeatureTogglesService {
|
||||
}
|
||||
|
||||
public isActiveFeatureName(featureName: FeatureNames) {
|
||||
const b = this.activeFeatureNames.includes(featureName);
|
||||
console.debug(`Feature ${featureName} is ${b}`);
|
||||
return b;
|
||||
return this.activeFeatureNames.includes(featureName);
|
||||
}
|
||||
|
||||
public getFeatureValue<T>(featureName: FeatureNames): T {
|
||||
|
||||
@@ -206,7 +206,7 @@ export default memo(
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function draggableMarkup(index: number, child: any) {
|
||||
@@ -226,13 +226,13 @@ export default memo(
|
||||
isMobile ? (
|
||||
<DocumentRow {...commonProps} />
|
||||
) : (
|
||||
<Draggable id={index}>
|
||||
<Draggable id={index} key={index}>
|
||||
<DocumentRow {...commonProps} />
|
||||
</Draggable>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user