Skip to content

Commit

Permalink
final cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Collins authored and Chris Collins committed Aug 16, 2022
1 parent b78da41 commit d6c2f46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
Expand Up @@ -169,18 +169,9 @@ export const ExecutionDetailsModal = ({ urn, visible, onClose }: Props) => {
<Typography.Paragraph ellipsis>
<pre>{`${logs}${!showExpandedLogs ? '...' : ''}`}</pre>
{isOutputExpandable && (
<>
{!showExpandedLogs && (
<ShowMoreButton type="link" onClick={() => setShowExpandedLogs(true)}>
Show More
</ShowMoreButton>
)}
{showExpandedLogs && (
<ShowMoreButton type="link" onClick={() => setShowExpandedLogs(false)}>
Hide
</ShowMoreButton>
)}
</>
<ShowMoreButton type="link" onClick={() => setShowExpandedLogs(!showExpandedLogs)}>
{showExpandedLogs ? 'Hide' : 'Show More'}
</ShowMoreButton>
)}
</Typography.Paragraph>
</LogsSection>
Expand Down
Expand Up @@ -95,6 +95,7 @@ export const IngestionSourceList = () => {
const [lastRefresh, setLastRefresh] = useState(0);
// Set of removed urns used to account for eventual consistency
const [removedUrns, setRemovedUrns] = useState<string[]>([]);
const [refreshInterval, setRefreshInterval] = useState<NodeJS.Timeout | null>(null);

// Ingestion Source Queries
const { loading, error, data, refetch } = useListIngestionSourcesQuery({
Expand Down Expand Up @@ -125,8 +126,6 @@ export const IngestionSourceList = () => {
setLastRefresh(new Date().getMilliseconds());
}, [refetch]);

const [refreshInterval, setRefreshInterval] = useState<NodeJS.Timeout | null>(null);

useEffect(() => {
const runningSource = filteredSources.find((source) =>
source.executions?.executionRequests.find((request) => request.result?.status === RUNNING),
Expand Down

0 comments on commit d6c2f46

Please sign in to comment.