Skip to content

Commit

Permalink
fix youtube timestamp setting
Browse files Browse the repository at this point in the history
  • Loading branch information
blackforestboi committed Jun 4, 2024
1 parent 70d704a commit 035ddfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion external/@worldbrain/memex-common
7 changes: 3 additions & 4 deletions src/annotations/components/AnnotationCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ export class AnnotationCreate extends React.Component<Props, State>
this.setState({ onEditClick: true }, async () => {
await delay(300)
if (commentText) {
this.editor?.addYoutubeTimestampWithText(
this.editor?.insertContentAt(
null,
commentText,
)
} else {
Expand All @@ -212,9 +213,7 @@ export class AnnotationCreate extends React.Component<Props, State>
})
} else {
if (commentText) {
this.editor?.addYoutubeTimestampWithText(
commentText,
)
this.editor?.insertContentAt(null, commentText)
} else {
this.editor?.addYoutubeTimestamp()
}
Expand Down

0 comments on commit 035ddfe

Please sign in to comment.