Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
johanah29 committed Nov 13, 2024
1 parent 00cc778 commit 4760a79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,7 @@ const Injects: FunctionComponent<Props> = ({
edge="start"
checked={
(selectAll && !(inject.inject_id
in (deSelectedElements || {})))
|| inject.inject_id in (selectedElements || {})
in (deSelectedElements || {}))) || inject.inject_id in (selectedElements || {})
}
disableRipple
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ const RulesContractContent: React.FC<Props> = ({
}, []);

const onChangeInjectorContractId = () => {
directFetchInjectorContract(methods.getValues(`import_mapper_inject_importers.${index}.inject_importer_injector_contract`)).then((result: { data: InjectorContractConverted }) => {
directFetchInjectorContract(methods.getValues(`import_mapper_inject_importers.${index}.inject_importer_injector_contract`)).then((result: {
data: InjectorContractConverted;
}) => {
const injectorContract = result.data;
setInjectorContractLabel(tPick(injectorContract.injector_contract_labels));
const tmp = injectorContract?.convertedContent?.fields
Expand Down Expand Up @@ -244,10 +246,9 @@ const RulesContractContent: React.FC<Props> = ({
<Badge
color="secondary"
variant="dot"
invisible={(!methods.getValues(`import_mapper_inject_importers.${index}.inject_importer_rule_attributes.${rulesIndex}.rule_attribute_default_value`)
|| methods.getValues(`import_mapper_inject_importers.${index}.inject_importer_rule_attributes.${rulesIndex}.rule_attribute_default_value`)?.length === 0)
&& (!methods.getValues(`import_mapper_inject_importers.${index}.inject_importer_rule_attributes.${rulesIndex}.rule_attribute_additional_config.timePattern`)
|| methods.getValues(`import_mapper_inject_importers.${index}.inject_importer_rule_attributes.${rulesIndex}.rule_attribute_additional_config`)?.timePattern?.length === 0)}
invisible={(!methods.getValues(`import_mapper_inject_importers.${index}.inject_importer_rule_attributes.${rulesIndex}.rule_attribute_default_value`) || methods.getValues(`import_mapper_inject_importers.${index}.inject_importer_rule_attributes.${rulesIndex}.rule_attribute_default_value`)?.length === 0)
&& (!methods.getValues(`import_mapper_inject_importers.${index}.inject_importer_rule_attributes.${rulesIndex}.rule_attribute_additional_config.timePattern`)
|| methods.getValues(`import_mapper_inject_importers.${index}.inject_importer_rule_attributes.${rulesIndex}.rule_attribute_additional_config`)?.timePattern?.length === 0)}
>
<CogOutline />
</Badge>
Expand Down

0 comments on commit 4760a79

Please sign in to comment.