diff --git a/datahub-web-react/src/app/ingest/source/ExecutionRequestDetailsModal.tsx b/datahub-web-react/src/app/ingest/source/ExecutionRequestDetailsModal.tsx index 81eb690765c5a..9479b7827558b 100644 --- a/datahub-web-react/src/app/ingest/source/ExecutionRequestDetailsModal.tsx +++ b/datahub-web-react/src/app/ingest/source/ExecutionRequestDetailsModal.tsx @@ -169,18 +169,9 @@ export const ExecutionDetailsModal = ({ urn, visible, onClose }: Props) => {
{`${logs}${!showExpandedLogs ? '...' : ''}`}
{isOutputExpandable && ( - <> - {!showExpandedLogs && ( - setShowExpandedLogs(true)}> - Show More - - )} - {showExpandedLogs && ( - setShowExpandedLogs(false)}> - Hide - - )} - + setShowExpandedLogs(!showExpandedLogs)}> + {showExpandedLogs ? 'Hide' : 'Show More'} + )}
diff --git a/datahub-web-react/src/app/ingest/source/IngestionSourceList.tsx b/datahub-web-react/src/app/ingest/source/IngestionSourceList.tsx index 28020b45b9ece..48a56d7dc21dd 100644 --- a/datahub-web-react/src/app/ingest/source/IngestionSourceList.tsx +++ b/datahub-web-react/src/app/ingest/source/IngestionSourceList.tsx @@ -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([]); + const [refreshInterval, setRefreshInterval] = useState(null); // Ingestion Source Queries const { loading, error, data, refetch } = useListIngestionSourcesQuery({ @@ -125,8 +126,6 @@ export const IngestionSourceList = () => { setLastRefresh(new Date().getMilliseconds()); }, [refetch]); - const [refreshInterval, setRefreshInterval] = useState(null); - useEffect(() => { const runningSource = filteredSources.find((source) => source.executions?.executionRequests.find((request) => request.result?.status === RUNNING),