Skip to content

Commit

Permalink
Merge branch 'main' into archetype_model_change
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 authored Oct 5, 2023
2 parents 891a571 + c93d891 commit 2b4aeed
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export const ApplicationDetailDrawerAnalysis: React.FC<

const { identities } = useFetchIdentities();
const { facts, isFetching } = useFetchFacts(application?.id);
const [appAnalysisToView, setAppAnalysisToView] = React.useState<number>();
const [taskIdToView, setTaskIdToView] = React.useState<number>();

let matchingSourceCredsRef: Identity | undefined;
Expand Down Expand Up @@ -124,7 +123,7 @@ export const ApplicationDetailDrawerAnalysis: React.FC<
}
type="button"
variant="link"
onClick={() => setAppAnalysisToView(application.id)}
onClick={() => setTaskIdToView(task.id)}
className={spacing.ml_0}
style={{ margin: "0", padding: "0" }}
>
Expand Down Expand Up @@ -213,10 +212,9 @@ export const ApplicationDetailDrawerAnalysis: React.FC<
<SimpleDocumentViewerModal<Task | string>
title={`Analysis details for ${application?.name}`}
fetch={getTaskById}
documentId={taskIdToView || appAnalysisToView}
documentId={taskIdToView}
onClose={() => {
setTaskIdToView(undefined);
setAppAnalysisToView(undefined);
}}
/>
</TextContent>
Expand Down

0 comments on commit 2b4aeed

Please sign in to comment.