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 81feab7 commit 11cb5cdCopy full SHA for 11cb5cd
src/generate.ts
@@ -157,8 +157,8 @@ export class Generate {
157
devWorkspaceMetadata.generateName = devfileMetadata.generateName;
158
}
159
if (devfile.attributes?.[DEVWORKSPACE_METADATA_ANNOTATION]) {
160
- devWorkspaceMetadata.annotations = Object.assign({}, devfile.attributes?.[DEVWORKSPACE_METADATA_ANNOTATION]);
161
- delete devfile.attributes?.[DEVWORKSPACE_METADATA_ANNOTATION];
+ devWorkspaceMetadata.annotations = Object.assign({}, devfile.attributes[DEVWORKSPACE_METADATA_ANNOTATION]);
+ delete devfile.attributes[DEVWORKSPACE_METADATA_ANNOTATION];
162
if (Object.keys(devfile.attributes).length === 0) {
163
delete devfile.attributes;
164
0 commit comments