Karlkorv / best-song

Basic webpage that allows you to paste a spotify playlist url and get a tournament setup of all the songs to figure out which one is best. Built using Blazor server App
MIT License
0 stars 0 forks source link

Odd-numbered lists crash on currentmatchup #45

Closed Karlkorv closed 2 years ago

Karlkorv commented 2 years ago

When trying to get the currentmatchup with only one contender, the program crashes

Fix this by organizing a new top level and automatically giving the remaining entry the w

Karlkorv commented 2 years ago

Kraschar också här:

warn: Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer[100]
      Unhandled exception rendering component: Index was outside the bounds of the array.
      System.IndexOutOfRangeException: Index was outside the bounds of the array.
         at best_song.Pages.Tournament.BuildRenderTree(RenderTreeBuilder __builder) in C:\Users\Janne\RiderProjects\best-song\src\Pages\Tournament.razor:line 29
         at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)
fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
      Unhandled exception in circuit 'LnzMSjEq1LsbSKB80ctrCh2-QyqZrWWiJ-b1retaZrA'.
      System.IndexOutOfRangeException: Index was outside the bounds of the array.
         at best_song.Pages.Tournament.BuildRenderTree(RenderTreeBuilder __builder) in C:\Users\Janne\RiderProjects\best-song\src\Pages\Tournament.razor:line 29
         at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)