mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 14:07:51 +01:00
Fix DmIcon BSOD (#27187)
* Fix DmIcon BSOD * tgui rebuild --------- Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
@@ -43,10 +43,14 @@ export class DmIcon extends Component<Props, { iconRef: string }> {
|
||||
}
|
||||
|
||||
async fetchRefMap() {
|
||||
const response = await fetchRetry(resolveAsset('icon_ref_map.json'));
|
||||
const data = await response.json();
|
||||
refMap = data;
|
||||
this.setState({ iconRef: data[this.props.icon] });
|
||||
try {
|
||||
const response = await fetchRetry(resolveAsset('icon_ref_map.json'));
|
||||
const data = await response.json();
|
||||
refMap = data;
|
||||
this.setState({ iconRef: data[this.props.icon] || '' });
|
||||
} catch (err) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user