diff --git a/packages/oss-console/src/components/Executions/ExecutionDetails/ExecutionDetailsActions/FlyteDeckButton.tsx b/packages/oss-console/src/components/Executions/ExecutionDetails/ExecutionDetailsActions/FlyteDeckButton.tsx
index b4e7c23b8..b83f1594a 100644
--- a/packages/oss-console/src/components/Executions/ExecutionDetails/ExecutionDetailsActions/FlyteDeckButton.tsx
+++ b/packages/oss-console/src/components/Executions/ExecutionDetails/ExecutionDetailsActions/FlyteDeckButton.tsx
@@ -8,6 +8,8 @@ import Grid from '@mui/material/Grid';
import IconButton from '@mui/material/IconButton';
import Typography from '@mui/material/Typography';
import DialogContent from '@mui/material/DialogContent';
+import { useDownloadLink } from '@clients/oss-console/components/hooks/useDataProxy';
+import RefreshIcon from '@mui/icons-material/Refresh';
import t from '../strings';
import { WorkflowNodeExecution } from '../../contexts';
import { NodeExecutionPhase } from '../../../../models/Execution/enums';
@@ -52,13 +54,11 @@ export const FlyteDeckButton: FC = ({
setSetFullScreen(!fullScreen);
};
+ const donwloadLink = useDownloadLink(nodeExecution?.id);
+
return nodeExecution?.closure?.deckUri ? (
<>
-
- downloadLink.fetch()}
- style={{
- marginTop: '20px',
- padding: '10px 20px',
- fontSize: '16px',
- fontWeight: 'bold',
- color: '#fff',
- backgroundColor: '#a31aff',
- border: 'none',
- borderRadius: '4px',
- cursor: 'pointer',
- }}
- >
- Refresh
-
);
}