Skip to content

Commit ee400ba

Browse files
update if api_version is already present
1 parent 16895e5 commit ee400ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/stack/contentType/entry/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function Entry (http, data) {
2626

2727
if (data && data.entry) {
2828
this.apiVersion = data.api_version || undefined;
29-
if (this.apiVersion) {
29+
if (this.apiVersion && !this.stackHeaders.api_version) {
3030
this.stackHeaders.api_version = this.apiVersion;
3131
}
3232
Object.assign(this, cloneDeep(data.entry))

0 commit comments

Comments
 (0)