File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ async function removeList() {
7171 if (confirmDelete .choice === ' confirm' ) {
7272 await nextTick ()
7373 try {
74+ // @ts-expect-error this method should not take any argument, but it expects 1-2 arguments since masto.js v7.7.0 (potential issue)
7475 await client .v1 .lists .$select (list .value .id ).remove ()
7576 emit (' listRemoved' , list .value .id )
7677 }
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ export function useStatusActions(props: StatusActionsProps) {
6161
6262 const toggleReblog = ( ) => toggleStatusAction (
6363 'reblogged' ,
64+ // @ts -expect-error this method should not take any argument, but it expects 1-2 arguments since masto.js v7.7.0 (potential issue)
6465 ( ) => client . value . v1 . statuses . $select ( status . value . id ) [ status . value . reblogged ? 'unreblog' : 'reblog' ] ( ) . then ( ( res ) => {
6566 if ( status . value . reblogged )
6667 // returns the original status
You can’t perform that action at this time.
0 commit comments