Skip to content

Commit

Permalink
deploy: 6a46766
Browse files Browse the repository at this point in the history
  • Loading branch information
thjaeckle committed Apr 9, 2024
1 parent 1cd4fc3 commit bd0e01b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion modules/things/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function onEditToggle(event) {
API.callDittoREST('GET', `/things/${Things.theThing.thingId}/attributes/${dom.crudAttribute.idValue}`,
null, null, true)
.then((response) => {
eTag = response.headers.get('ETag');
eTag = response.headers.get('ETag').replace('W/', '');
return response.json();
})
.then((attributeValue) => {
Expand Down
2 changes: 1 addition & 1 deletion modules/things/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ function onEditToggle(event) {
if (isEditing && dom.crudFeature.idValue && dom.crudFeature.idValue !== '') {
API.callDittoREST('GET', `/things/${Things.theThing.thingId}/features/${dom.crudFeature.idValue}`, null, null, true)
.then((response) => {
eTag = response.headers.get('ETag');
eTag = response.headers.get('ETag').replace('W/', '');
return response.json();
})
.then((featureJson) => {
Expand Down
2 changes: 1 addition & 1 deletion modules/things/thingsCRUD.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function onEditToggle(event) {
if (isEditing && Things.theThing) {
API.callDittoREST('GET', `/things/${Things.theThing.thingId}`, null, null, true)
.then((response) => {
eTag = response.headers.get('ETag');
eTag = response.headers.get('ETag').replace('W/', '');
return response.json();
})
.then((thingJson) => {
Expand Down

0 comments on commit bd0e01b

Please sign in to comment.