Skip to content

Commit 2c5977c

Browse files
vulkoingimroboquat
authored andcommitted
Fix preview name prefix
1 parent a6e5622 commit 2c5977c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.werft/util/preview.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ export class HarvesterPreviewEnvironment {
5656
constructor(werft: Werft, namespace: string) {
5757
this.werft = werft;
5858
this.namespace = namespace;
59-
this.name = namespace.replace(HarvesterPreviewEnvironment.namespacePrefix, "");
59+
this.name = namespace;
60+
if (this.namespace.startsWith(HarvesterPreviewEnvironment.namespacePrefix)){
61+
this.name = namespace.slice(HarvesterPreviewEnvironment.namespacePrefix.length);
62+
}
6063
}
6164

6265
async delete(): Promise<void> {

0 commit comments

Comments
 (0)