Removed useless code
This commit is contained in:
@@ -10,7 +10,6 @@
|
|||||||
export let selected = false
|
export let selected = false
|
||||||
|
|
||||||
$: cleanedContent = makeExcerpt(note?.content ?? '', offset)
|
$: cleanedContent = makeExcerpt(note?.content ?? '', offset)
|
||||||
$: matchesExcerpt = cloneDeep(note.matches)
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ResultItemContainer
|
<ResultItemContainer
|
||||||
@@ -20,6 +19,6 @@
|
|||||||
on:click
|
on:click
|
||||||
on:auxclick>
|
on:auxclick>
|
||||||
<div class="omnisearch-result__body">
|
<div class="omnisearch-result__body">
|
||||||
{@html highlightText(cleanedContent, matchesExcerpt)}
|
{@html highlightText(cleanedContent, note.matches)}
|
||||||
</div>
|
</div>
|
||||||
</ResultItemContainer>
|
</ResultItemContainer>
|
||||||
|
|||||||
Reference in New Issue
Block a user