Skip to content

Commit

Permalink
Merge pull request #5 from Akelio-zhang/patch-1
Browse files Browse the repository at this point in the history
fix when a long rich text error of notion rich_text api (should be less than 2000 chars)
  • Loading branch information
lizheming authored Dec 31, 2023
2 parents acd1039 + 28cded6 commit 9996de9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/store/notion.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ const FORMATS = {
]
},
rich_text(val) {
return this.title(val);
const valFitin = val.length <= 2000 ? val : val.substring(0, 2000);
return this.title(valFitin);
},
number(val) {
return Number(val);
Expand Down

0 comments on commit 9996de9

Please sign in to comment.