What’s the proper way to getting the id (or name) of the datasource that is currently selected in the edit panel page?
If i extend props from PanelProps and then in my class call
getDataSourceSrv().get(this.props.data.request?.targets[0].datasource).then(res=>console.log(res.id))
i can get the id of it, but there’s probably a better way.
Does anyone know about it?