Skip to content

Commit

Permalink
Revert tf changes
Browse files Browse the repository at this point in the history
  • Loading branch information
foot committed Dec 8, 2023
1 parent 36ef75e commit 53f32f2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 72 deletions.
1 change: 0 additions & 1 deletion tools/dev-resources/user-guide/vcluster-capi-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ metadata:
annotations:
templates.weave.works/profiles-enabled: "true"
templates.weave.works/add-common-bases: "true"
templates.weave.works/credentials-enabled: "true"
labels:
weave.works/template-type: cluster
spec:
Expand Down
11 changes: 2 additions & 9 deletions ui/src/components/Terraform/TerraformListTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,8 @@ type Props = {

export const getLastApplied = (tf: TerraformObject) => {
const timestamp = _.find(tf?.conditions, { type: 'Apply' })?.timestamp;
if (!timestamp) {
return '-';
}

try {
return new Date(timestamp).toISOString();
} catch (e) {
return '-';
}
if (!timestamp) return '-';
return new Date(timestamp).toISOString();
};

function TerraformListTable({ className, rows }: Props) {
Expand Down
62 changes: 0 additions & 62 deletions ui/src/components/Terraform/__tests__/TerraformListTable.tsx

This file was deleted.

0 comments on commit 53f32f2

Please sign in to comment.