added comment to reason the id tag

This commit is contained in:
André Niemann 2018-06-18 10:59:44 +02:00
parent 23c97d080f
commit 757e2b0b7e

View File

@ -177,6 +177,7 @@ export class DashboardGrid extends React.Component<DashboardGridProps, any> {
for (let panel of this.dashboard.panels) {
const panelClasses = classNames({ panel: true, 'panel--fullscreen': panel.fullscreen });
panelElements.push(
/** panel-id is set for html bookmarks */
<div key={panel.id.toString()} className={panelClasses} id={`panel-${panel.id.toString()}`}>
<DashboardPanel panel={panel} getPanelContainer={this.props.getPanelContainer} />
</div>