function handleRefTargets()

in grafana/panels/graph.js [140:153]


function handleRefTargets(target, targets) {
    if (target.includes('#')) {
        const refs = getRefsFromTarget(target);
        const findTargetByRefId = (targets, refId) => targets.find(target => target.refId === refId).target;

        return {
            targetFull: refs.reduce((res, ref) =>
                res.replace(`#${ref}`, findTargetByRefId(targets, ref)),
              target)
        };
    }

    return {}
}