Commit 227cbb4
authored
fix: migration erroring when there is empty cell in table (#1223)
[![PR App][icn]][demo] | Fix RM-XYZ
:-------------------:|:----------:
## 🧰 Changes
Tables like:
```md
| Name | Date |
| ---- | ---- |
| test | |
```
were throwing an error when migrating because we tried to access an
attribute .type whilst content is not the expected object.
This PR just does early exit when content is empty.
## 🧬 QA & Testing
- [Broken on production][prod].
- [Working in this PR app][demo].
[demo]: https://markdown-pr-PR_NUMBER.herokuapp.com
[prod]: https://SUBDOMAIN.readme.io
[icn]:
https://user-images.githubusercontent.com/886627/160426047-1bee9488-305a-4145-bb2b-09d8b757d38a.svg1 parent 698390a commit 227cbb4
File tree
2 files changed
+18
-0
lines changed- __tests__/migration
- processor/transform
2 files changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
4 | 19 | | |
5 | 20 | | |
6 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
0 commit comments