Commit 53a18fe
committed
fix: post-validation sync in package model has always truthy fields
The logic of the sync was wrong, i.e. because the default-value string
fields were checked only for truthiness, the MSSDK model's values
wouldn't be propagated, and the default value would remain. While this
was OK for the tests, this causes a serious runtime problem for real
packages and notices, as the package would return the default ID
`no_id`.1 parent fa21488 commit 53a18fe
1 file changed
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
320 | 327 | | |
321 | 328 | | |
322 | 329 | | |
| |||
0 commit comments