Skip to content
Prev Previous commit
Next Next commit
update if api_version is already present
  • Loading branch information
harshithad0703 committed Feb 7, 2025
commit ee400bab798b7f1ebea94c5a55817868fcc1fed8
2 changes: 1 addition & 1 deletion lib/stack/contentType/entry/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function Entry (http, data) {

if (data && data.entry) {
this.apiVersion = data.api_version || undefined;
if (this.apiVersion) {
if (this.apiVersion && !this.stackHeaders.api_version) {
this.stackHeaders.api_version = this.apiVersion;
}
Object.assign(this, cloneDeep(data.entry))
Expand Down
Loading