Commit a3e50db6 authored by Miguel Rincon's avatar Miguel Rincon

Add comment to explain mutation

parent 84d8c00f
......@@ -33,7 +33,11 @@ const findMetricInDashboard = (metricId, dashboard) => {
};
/**
* Set a new state for a metric
* Set a new state for a metric.
*
* Initally metric data is not populated, so `Vue.set` is
* used to add new properties to the metric.
*
* @param {Object} metric - Metric object as defined in the dashboard
* @param {Object} state - New state
* @param {Array|null} state.result - Array of results
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment