Skip to content

Commit

Permalink
fix: accordion typewriter
Browse files Browse the repository at this point in the history
  • Loading branch information
Col0ring committed Feb 6, 2024
1 parent 79985c5 commit baf05ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ export const Accordion: Components['accordion'] = ({
? (last_flushing_end_index || 0) > (node.position?.end.offset || 0) || end
: true;
const flushingEnd = flushing
? typeof text[node.position?.end.offset || 0] === 'string' ||
text.length === node.position?.end.offset
? typeof text[node.position?.end.offset || 0] === 'string'
: true;

const hasEnd = flushingEnd && textEnd;
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build-backend = "hatchling.build"

[project]
name = "modelscope_studio"
version = "0.0.4"
version = "0.0.5"
description = "A set of extension component, inluding components for conversational input and display in multimodal scenarios, as well as more components for vertical scenarios."
readme = "README.md"
license = "Apache-2.0"
Expand Down

0 comments on commit baf05ec

Please sign in to comment.