Skip to content

Commit

Permalink
fix SSE overwriting message input fields
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
  • Loading branch information
thfries authored and thjaeckle committed Oct 16, 2023
1 parent 4404e59 commit cebcc3d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ui/modules/things/featureMessages.ts
Expand Up @@ -169,8 +169,10 @@ function refillTemplates() {
}

function onFeatureChanged(featureId) {
theFeatureId = featureId;
clearAllFields();
refillTemplates();
if (featureId !== theFeatureId) {
theFeatureId = featureId;
clearAllFields();
refillTemplates();
}
}

0 comments on commit cebcc3d

Please sign in to comment.