Skip to content

Commit

Permalink
fix eTag handling in UI, replacing "weak" on GET
Browse files Browse the repository at this point in the history
  • Loading branch information
thjaeckle committed May 14, 2024
1 parent 20e59f8 commit 8d88512
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/modules/things/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
* SPDX-License-Identifier: EPL-2.0
*/

import {JSONPath} from 'jsonpath-plus';
import { JSONPath } from 'jsonpath-plus';
import * as API from '../api.js';
/* eslint-disable comma-dangle */
/* eslint-disable new-cap */
import * as Utils from '../utils.js';
import featuresHTML from './features.html';
import * as Fields from './fields.js';
import * as Things from './things.js';
import featuresHTML from './features.html';

const observers = [];

Expand Down 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').replace('W/', '');
eTag = response.headers.get('ETag');
return response.json();
})
.then((featureJson) => {
Expand Down

0 comments on commit 8d88512

Please sign in to comment.