Jelajahi Sumber

prettier fix

Peter Holmberg 6 tahun lalu
induk
melakukan
73b4d817e4

+ 2 - 2
packages/grafana-ui/src/components/VizRepeater/VizRepeater.tsx

@@ -19,8 +19,8 @@ export class VizRepeater extends PureComponent<Props> {
   render() {
     const { children, orientation, height, timeSeries, width } = this.props;
 
-    const vizContainerWidth = 1 / timeSeries.length * 100;
-    const vizContainerHeight = 1 / timeSeries.length * 100;
+    const vizContainerWidth = (1 / timeSeries.length) * 100;
+    const vizContainerHeight = (1 / timeSeries.length) * 100;
     const repeatingVizWidth = Math.floor(width / timeSeries.length) - 10; // make Gauge slightly smaller than panel.
     const repeatingVizHeight = Math.floor(height / timeSeries.length) - 10;
 

+ 1 - 1
public/app/features/dashboard/dashgrid/PanelPluginNotFound.tsx

@@ -28,7 +28,7 @@ class PanelPluginNotFound extends PureComponent<Props> {
 
     return (
       <div style={style}>
-        <AlertBox severity={AppNotificationSeverity.Error} title={`Panel plugin not found: ${this.props.pluginId})`} />
+        <AlertBox severity={AppNotificationSeverity.Error} title={`Panel plugin not found: ${this.props.pluginId}`} />
       </div>
     );
   }