Skip to content

Commit

Permalink
fix: trim autogen desc
Browse files Browse the repository at this point in the history
  • Loading branch information
ker0olos committed Apr 14, 2024
1 parent 560ddcf commit bc757ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/Characters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export default (
const chunk = result.value;

signal.value.description += new TextDecoder().decode(chunk);
signal.value.description = signal.value.description?.trim();
forceUpdate();

result = await reader.read();
Expand Down
1 change: 1 addition & 0 deletions components/Media.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export default (
const chunk = result.value;

signal.value.description += new TextDecoder().decode(chunk);
signal.value.description = signal.value.description?.trim();
forceUpdate();

result = await reader.read();
Expand Down

0 comments on commit bc757ac

Please sign in to comment.