hayun-vite 0.15.3 → 0.15.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Form/Form.js +6 -6
package/package.json
CHANGED
package/src/Form/Form.js
CHANGED
@@ -173,41 +173,41 @@ export default class Form {
|
|
173
173
|
}
|
174
174
|
// }
|
175
175
|
// if (keys.includes("history")) {
|
176
|
-
if (JSON.stringify(this.data.history) !== JSON.stringify(
|
176
|
+
if (JSON.stringify(this.data.history) !== JSON.stringify(session?.history) && session?.history) {
|
177
177
|
this.history?.update(session?.history)
|
178
178
|
this.data.history = session.history
|
179
179
|
}
|
180
180
|
// }
|
181
181
|
// if (keys.includes("audiogram")) {
|
182
|
-
if (JSON.stringify(this.data.audiogram) !== JSON.stringify(
|
182
|
+
if (JSON.stringify(this.data.audiogram) !== JSON.stringify(session.audiogram) && session.audiogram) {
|
183
183
|
this.RAudiogram?.update({ data: session.audiogram?.R, side: 'R' })
|
184
184
|
this.LAudiogram?.update({ data: session.audiogram?.L, side: 'L' })
|
185
185
|
}
|
186
186
|
this.data.audiogram = session.audiogram
|
187
187
|
// }
|
188
188
|
// if (keys.includes("speech")) {
|
189
|
-
if (JSON.stringify(this.data.speech) !== JSON.stringify(
|
189
|
+
if (JSON.stringify(this.data.speech) !== JSON.stringify(session.speech) && session.speech) {
|
190
190
|
this.RSpeech?.update(session.speech?.R)
|
191
191
|
this.LSpeech?.update(session.speech?.L)
|
192
192
|
}
|
193
193
|
this.data.speech = session.speech
|
194
194
|
// }
|
195
195
|
// if (keys.includes("tympanogram")) {
|
196
|
-
if (JSON.stringify(this.data.tympanogram) !== JSON.stringify(
|
196
|
+
if (JSON.stringify(this.data.tympanogram) !== JSON.stringify(session.tympanogram) && session.tympanogram) {
|
197
197
|
this.RTympanogram?.update(session.tympanogram?.R)
|
198
198
|
this.LTympanogram?.update(session.tympanogram?.L)
|
199
199
|
}
|
200
200
|
this.data.tympanogram = session.tympanogram;
|
201
201
|
// }
|
202
202
|
// if (keys.includes("reflex")) {
|
203
|
-
if (JSON.stringify(this.data.reflex) !== JSON.stringify(
|
203
|
+
if (JSON.stringify(this.data.reflex) !== JSON.stringify(session.reflex) && session.reflex) {
|
204
204
|
this.RReflex?.update(session.reflex?.R)
|
205
205
|
this.LReflex?.update(session.reflex?.L)
|
206
206
|
}
|
207
207
|
this.data.reflex = session.reflex;
|
208
208
|
// }
|
209
209
|
// if (keys.includes("report")) {
|
210
|
-
if (JSON.stringify(this.data.report) !== JSON.stringify(
|
210
|
+
if (JSON.stringify(this.data.report) !== JSON.stringify(session.report) && session.report) {
|
211
211
|
this.report?.update(session.report)
|
212
212
|
this.data.report = session.report
|
213
213
|
}
|