hayun-vite 0.15.1 → 0.15.2
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 +15 -15
package/package.json
CHANGED
package/src/Form/Form.js
CHANGED
@@ -161,24 +161,22 @@ export default class Form {
|
|
161
161
|
|
162
162
|
// let keys = Object.keys(data)
|
163
163
|
// if (keys.includes("header")) {
|
164
|
-
|
165
|
-
console.log(JSON.stringify(this.data.header) !== JSON.stringify(data.header));
|
166
|
-
|
167
|
-
// console.log(this.data.header, data.header);
|
168
|
-
|
169
|
-
JSON.stringify(this.data.header) !== JSON.stringify(data.header) &&
|
164
|
+
if (JSON.stringify(this.data.header) !== JSON.stringify(data.header) && data.header) {
|
170
165
|
this.header?.update(data.header)
|
171
|
-
|
166
|
+
this.data.header = data.header
|
167
|
+
}
|
172
168
|
// }
|
173
169
|
// if (keys.includes("patient")) {
|
174
|
-
JSON.stringify(this.data.patient) !== JSON.stringify(data.patient) &&
|
170
|
+
if (JSON.stringify(this.data.patient) !== JSON.stringify(data.patient) && data.patient) {
|
175
171
|
this.patient?.update(data.patient)
|
176
|
-
|
172
|
+
this.data.patient = data.patient
|
173
|
+
}
|
177
174
|
// }
|
178
175
|
// if (keys.includes("history")) {
|
179
|
-
JSON.stringify(this.data.history) !== JSON.stringify(data.history) &&
|
176
|
+
if (JSON.stringify(this.data.history) !== JSON.stringify(data.history) && data.history) {
|
180
177
|
this.history?.update(session?.history)
|
181
|
-
|
178
|
+
this.data.history = session.history
|
179
|
+
}
|
182
180
|
// }
|
183
181
|
// if (keys.includes("audiogram")) {
|
184
182
|
if (JSON.stringify(this.data.audiogram) !== JSON.stringify(data.audiogram)) {
|
@@ -209,14 +207,16 @@ export default class Form {
|
|
209
207
|
this.data.reflex = session.reflex;
|
210
208
|
// }
|
211
209
|
// if (keys.includes("report")) {
|
212
|
-
JSON.stringify(this.data.report) !== JSON.stringify(data.report) &&
|
210
|
+
if (JSON.stringify(this.data.report) !== JSON.stringify(data.report) && data.report) {
|
213
211
|
this.report?.update(session.report)
|
214
|
-
|
212
|
+
this.data.report = session.report
|
213
|
+
}
|
215
214
|
// }
|
216
215
|
// if (keys.includes("footer")) {
|
217
|
-
JSON.stringify(this.data.footer) !== JSON.stringify(data.footer) &&
|
216
|
+
if (JSON.stringify(this.data.footer) !== JSON.stringify(data.footer) && data.footer) {
|
218
217
|
this.footer?.update(data?.footer)
|
219
|
-
|
218
|
+
this.data.footer = data.footer
|
219
|
+
}
|
220
220
|
}
|
221
221
|
|
222
222
|
// خطوط نقطه چین مارجین فرم
|