Fix request id null issue when fetching deploy logs
All checks were successful
Lint / lint (20.x) (pull_request) Successful in 4m37s
All checks were successful
Lint / lint (20.x) (pull_request) Successful in 4m37s
This commit is contained in:
parent
4a9f517d85
commit
8ea91bbce1
@ -92,7 +92,7 @@ const DeploymentDetailsCard = ({
|
||||
}
|
||||
};
|
||||
|
||||
const fetchDeploymentLogs = async () => {
|
||||
const fetchDeploymentLogs = useCallback(async () => {
|
||||
setDeploymentLogs('Loading logs...');
|
||||
handleOpenDialog();
|
||||
const statusUrl = `${deployment.deployer.deployerApiUrl}/${deployment.applicationDeploymentRequestId}`;
|
||||
@ -108,7 +108,7 @@ const DeploymentDetailsCard = ({
|
||||
);
|
||||
setDeploymentLogs(logsRes);
|
||||
}
|
||||
};
|
||||
}, [deployment.deployer, deployment.applicationDeploymentRequestId]);
|
||||
|
||||
const renderDeploymentStatus = useCallback(
|
||||
(className?: string) => {
|
||||
@ -127,7 +127,7 @@ const DeploymentDetailsCard = ({
|
||||
</Tooltip>
|
||||
);
|
||||
},
|
||||
[deployment.status, deployment.commitHash],
|
||||
[deployment.status, deployment.commitHash, fetchDeploymentLogs],
|
||||
);
|
||||
|
||||
return (
|
||||
|
@ -4,10 +4,7 @@ import { cloneIcon } from 'utils/cloneIcon';
|
||||
import { PWAIcon } from './PWAIcon';
|
||||
import { WebAppIcon } from './WebAppIcon';
|
||||
|
||||
const TEMPLATE_ICONS = [
|
||||
'pwa',
|
||||
'web'
|
||||
] as const;
|
||||
const TEMPLATE_ICONS = ['pwa', 'web'] as const;
|
||||
export type TemplateIconType = (typeof TEMPLATE_ICONS)[number];
|
||||
|
||||
export interface TemplateIconProps extends CustomIconProps {
|
||||
|
@ -73,17 +73,17 @@ const EnvironmentVariablesForm = () => {
|
||||
<div className="flex gap-2 p-2">
|
||||
<Checkbox
|
||||
label="Production"
|
||||
labelProps={{ className: "text-gray-900 dark:text-white" }}
|
||||
labelProps={{ className: 'text-gray-900 dark:text-white' }}
|
||||
{...register('environment.production')}
|
||||
/>
|
||||
<Checkbox
|
||||
label="Preview"
|
||||
labelProps={{ className: "text-gray-900 dark:text-white" }}
|
||||
labelProps={{ className: 'text-gray-900 dark:text-white' }}
|
||||
{...register('environment.preview')}
|
||||
/>
|
||||
<Checkbox
|
||||
label="Development"
|
||||
labelProps={{ className: "text-gray-900 dark:text-white" }}
|
||||
labelProps={{ className: 'text-gray-900 dark:text-white' }}
|
||||
{...register('environment.development')}
|
||||
/>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user