Skip to content

Commit

Permalink
fix: bug where error messages no longer displayed on summary page
Browse files Browse the repository at this point in the history
  • Loading branch information
katiestahl committed Aug 3, 2024
1 parent 61c4168 commit aa3af6c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions client/src/services/ResponseModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -672,13 +672,12 @@ export interface ExonCoordsRequest {
*/
export interface FormattedAssayedFusion {
fusion_type?: AssayedFusion & string;
structure: (
structure:
| TranscriptSegmentElement
| GeneElement
| TemplatedSequenceElement
| LinkerElement
| UnknownGeneElement
)[];
| UnknownGeneElement;
causative_event?: CausativeEvent | null;
assay?: Assay | null;
regulatory_element?: RegulatoryElement | null;
Expand All @@ -691,13 +690,12 @@ export interface FormattedAssayedFusion {
*/
export interface FormattedCategoricalFusion {
fusion_type?: CategoricalFusion & string;
structure: (
structure:
| TranscriptSegmentElement
| GeneElement
| TemplatedSequenceElement
| LinkerElement
| MultiplePossibleGenesElement
)[];
| MultiplePossibleGenesElement;
regulatory_element?: RegulatoryElement | null;
critical_functional_domains?: FunctionalDomain[] | null;
reading_frame_preserved?: boolean | null;
Expand Down
2 changes: 1 addition & 1 deletion client/src/services/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export type ClientFusion = ClientCategoricalFusion | ClientAssayedFusion;
* to add additional annotations if we want to later.
*/
export const validateFusion = async (
fusion: AssayedFusion | CategoricalFusion
fusion: FormattedAssayedFusion | FormattedCategoricalFusion
): Promise<ValidateFusionResponse> => {
const response = await fetch("/api/validate", {
method: "POST",
Expand Down
2 changes: 1 addition & 1 deletion server/src/curfu/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class AssociatedDomainResponse(Response):
class ValidateFusionResponse(Response):
"""Response model for Fusion validation endpoint."""

fusion: Fusion | None
fusion: Fusion | None = None


class ExonCoordsRequest(BaseModel):
Expand Down

0 comments on commit aa3af6c

Please sign in to comment.