mirror of
https://github.com/Readarr/Readarr
synced 2026-02-11 09:13:51 +01:00
Ensure original data is shown when no matches are made
This commit is contained in:
parent
4d7a762ee8
commit
22f92150c3
1 changed files with 4 additions and 0 deletions
|
|
@ -54,6 +54,10 @@ class InlineMarkdown extends Component {
|
|||
if (endIndex !== data.length && markdownBlocks.length > 0 && matchedCode) {
|
||||
markdownBlocks.push(data.substr(endIndex, data.length - endIndex));
|
||||
}
|
||||
|
||||
if (markdownBlocks.length === 0) {
|
||||
markdownBlocks.push(data);
|
||||
}
|
||||
}
|
||||
|
||||
return <span className={className}>{markdownBlocks}</span>;
|
||||
|
|
|
|||
Loading…
Reference in a new issue