Skip to content

Commit

Permalink
added chaining operator to registry (#4088)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexyaang authored Sep 22, 2023
1 parent 8da7673 commit 1ba55e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/images/tagImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function tagImage(context: IActionContext, node?: ImageTreeItem, re
}

addImageTaggingTelemetry(context, node.fullTag, '.before');
const baseImagePath = isRegistry(registry.wrappedItem) ? getBaseImagePathFromRegistry(registry.wrappedItem) : undefined;
const baseImagePath = isRegistry(registry?.wrappedItem) ? getBaseImagePathFromRegistry(registry.wrappedItem) : undefined;
const newTaggedName: string = await getTagFromUserInput(context, node.fullTag, baseImagePath);
addImageTaggingTelemetry(context, newTaggedName, '.after');

Expand Down

0 comments on commit 1ba55e1

Please sign in to comment.