Commit 4377e95c by Torkel Ödegaard

fix(graph legend): minor correction to last commit

parent f4feb380
......@@ -101,7 +101,12 @@ function (angular, _, $) {
}
function render() {
console.log('render legend');
if (!ctrl.panel.legend.show) {
elem.empty();
firstRender = true;
return;
}
if (firstRender) {
elem.append($container);
$container.on('click', '.graph-legend-icon', openColorSelector);
......
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