We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9808e9a commit ba821c0Copy full SHA for ba821c0
npm-packages/dashboard/src/components/deploymentSettings/DeletePreviewDeployment.tsx
@@ -13,7 +13,10 @@ import { useState } from "react";
13
export function DeletePreviewDeployment() {
14
const [showDeleteModal, setShowDeleteModal] = useState(false);
15
const deployment = useCurrentDeployment();
16
- if (deployment === undefined || !deployment.previewIdentifier) {
+ if (
17
+ deployment === undefined ||
18
+ typeof deployment.previewIdentifier !== "string"
19
+ ) {
20
return null;
21
}
22
return (
0 commit comments