Skip to content

Commit b4ca394

Browse files
authored
Update pages/browse/index.js
1 parent 43da315 commit b4ca394

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

pages/browse/index.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,6 @@ const Browse = ({ session }) => {
4949
)
5050
}
5151

52-
// const truncateDescription = (desc = '', maxLength, isOpen) => {
53-
// if (desc.length <= maxLength || isOpen) return { truncated: desc, cutOffIndex: desc.length }
54-
// const lastSpaceIndex = desc.substring(0, maxLength).lastIndexOf(' ')
55-
// const ellipsis = isOpen ? '' : '...'
56-
// return { truncated: desc.slice(0, lastSpaceIndex) + ellipsis, cutOffIndex: lastSpaceIndex }
57-
// }
58-
5952
return (
6053
<div className='container'>
6154
<SearchBar onSubmit={handleOnSubmit} initialValue={existingQuery} />

0 commit comments

Comments
 (0)