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 a6e5622 commit 2c5977cCopy full SHA for 2c5977c
.werft/util/preview.ts
@@ -56,7 +56,10 @@ export class HarvesterPreviewEnvironment {
56
constructor(werft: Werft, namespace: string) {
57
this.werft = werft;
58
this.namespace = namespace;
59
- this.name = namespace.replace(HarvesterPreviewEnvironment.namespacePrefix, "");
+ this.name = namespace;
60
+ if (this.namespace.startsWith(HarvesterPreviewEnvironment.namespacePrefix)){
61
+ this.name = namespace.slice(HarvesterPreviewEnvironment.namespacePrefix.length);
62
+ }
63
}
64
65
async delete(): Promise<void> {
0 commit comments