Skip to content

Commit 1820cfa

Browse files
author
Sergiu Miclea
committed
Fix random number appearing when loading main list
A random number appears at the bottom of replicas, migrations and endpoints list, caused by adding the schedule icon tooltip feature.
1 parent da1251e commit 1820cfa

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "coriolis-web",
3-
"version": "1.4.5",
3+
"version": "1.4.6",
44
"license": "AGPL-3.0",
55
"scripts": {
66
"start": "npm run env:dev && node server.js --dev",

src/components/organisms/MainList/MainList.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,16 @@ class MainList extends React.Component<Props> {
181181
return this.renderList()
182182
}
183183

184+
let rebuildTooltip = () => {
185+
setTimeout(() => { Tooltip.rebuild() }, 500)
186+
}
187+
184188
return (
185189
<Wrapper>
186190
{this.props.loading || this.props.items.length === 0 || this.props.showEmptyList ? <Separator /> : null}
187191
{renderContent()}
188192
<Tooltip />
189-
{setTimeout(() => { Tooltip.rebuild() }, 500)}
193+
{rebuildTooltip()}
190194
</Wrapper>
191195
)
192196
}

0 commit comments

Comments
 (0)