Skip to content

Commit d158707

Browse files
author
liveipooli(李为)
committed
ADD: add a determination,make sure pages can work normally
1 parent b920288 commit d158707

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

webapp/app/containers/Display/components/DisplayList.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ export class DisplayList extends React.PureComponent<IDisplayListProps, IDisplay
200200
}
201201

202202
private renderDisplay (display: IDisplay) {
203+
if (display.avatar && isNaN(parseInt(display.avatar))) {
204+
display.avatar = ''
205+
}
203206
const coverStyle: React.CSSProperties = {
204207
backgroundImage: `url(${require(`assets/images/bg${display.avatar}.png`)}`
205208
}

0 commit comments

Comments
 (0)