parent
3e443617e9
commit
eb5e1cf41d
@ -2,13 +2,7 @@ import Chart from "chart.js/auto"
|
||||
|
||||
const ChampionWinRate = {
|
||||
mounted() {
|
||||
console.log("mounted")
|
||||
this.handleEvent("points", (event) => console.log("123"))
|
||||
|
||||
// this.props = { id: this.el.getAttribute("data-id") };
|
||||
this.handleEvent("win-rate", ({ winRates }) => {
|
||||
console.log(">>>>>>>")
|
||||
console.log(winRates);
|
||||
patches = winRates.map((winRate) => {
|
||||
return winRate.patch_number
|
||||
})
|
||||
|
@ -76,7 +76,6 @@ defmodule LoLAnalyticsWeb.ChampionLive.Show do
|
||||
end
|
||||
|
||||
def handle_async(:get_win_rates, {:ok, result}, socket) do
|
||||
IO.inspect(result)
|
||||
{:noreply, push_event(socket, "win-rate", %{winRates: result})}
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user