Skip to content

Commit

Permalink
Фикс вылета при названии состояния только из цифр (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
L140-beep authored Sep 6, 2024
1 parent 9b8c785 commit d483dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/src/components/Hierarchy/TitleRender.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const TitleRender: React.FC<TitleRenderProps> = (props) => {

const Icon = icons[type];

const parts = search ? title.split(new RegExp(`(${search})`, 'gi')) : [title];
const parts = search ? title.split(new RegExp(`(${search})`, 'gi')) : [title.toString()];

return (
<div className="group flex w-full items-center gap-2">
Expand Down

0 comments on commit d483dd6

Please sign in to comment.