-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: local console errors #1033
Conversation
tihuan
commented
Jul 10, 2024
- Add explicit known local transient errors to ignore, so we can catch other unknown errors in local e2e tests
- Fix some components that cause errors in the console
interface Props { | ||
interface StateProps { | ||
isColorAccessor: boolean; | ||
isScatterplotXXaccessor: boolean; | ||
isScatterplotYYaccessor: boolean; | ||
isGeneInfo: boolean; | ||
} | ||
|
||
interface DispatchProps { | ||
dispatch: AppDispatch; | ||
} | ||
|
||
interface OwnProps { | ||
gene: string; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- FIXME | ||
quickGene: any; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- FIXME | ||
removeGene: any; | ||
quickGene?: boolean; | ||
removeGene?: (gene: string) => () => void; | ||
geneId: DataframeValue; | ||
isGeneExpressionComplete: boolean; | ||
onGeneExpressionComplete: () => void; | ||
geneDescription?: string; | ||
geneset?: string; | ||
} | ||
|
||
// @ts-expect-error ts-migrate(1238) FIXME: Unable to resolve signature of class decorator whe... Remove this comment to see the full error message | ||
@connect((state: RootState, ownProps: Props) => { | ||
const { gene } = ownProps; | ||
type Props = StateProps & OwnProps & DispatchProps; | ||
|
||
return { | ||
isColorAccessor: | ||
state.colors.colorAccessor === gene && | ||
state.colors.colorMode !== "color by categorical metadata", | ||
isScatterplotXXaccessor: state.controls.scatterplotXXaccessor === gene, | ||
isScatterplotYYaccessor: state.controls.scatterplotYYaccessor === gene, | ||
}; | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean up typing
@@ -183,7 +174,7 @@ class Gene extends React.Component<Props, State> { | |||
</Truncate> | |||
</div> | |||
<div style={{ display: "inline-block", marginLeft: "0" }}> | |||
<Button | |||
<AnchorButton |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nested button is invalid HTML
@@ -160,17 +161,15 @@ function QuickGene() { | |||
} | |||
|
|||
return ( | |||
<> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this innocent fragment tag throws unique key
error
108e497
to
7a1f4e0
Compare