1
0
mirror of synced 2025-01-18 22:24:04 +01:00

Add key for optionally-rendered score pagination to avoid react bug related to failing to remove old header.

This commit is contained in:
Jennifer Taylor 2022-10-08 22:16:43 +00:00
parent 3843e37d4e
commit 88df108d32
5 changed files with 10 additions and 10 deletions

View File

@ -176,7 +176,7 @@ var network_records = createReactClass({
return (
<>
{ paginate ?
<div className="section">
<div className="section" key="paginatebuttons">
{songids.map(function(songid) {
if (songid < 0) {
curbutton = curbutton + 1;
@ -199,7 +199,7 @@ var network_records = createReactClass({
</div> :
null
}
<div className="section">
<div className="section" key="contents">
<table className="list records">
<thead></thead>
<tbody>

View File

@ -184,7 +184,7 @@ var network_records = createReactClass({
return (
<>
{ paginate ?
<div className="section">
<div className="section" key="paginatebuttons">
{songids.map(function(songid) {
if (songid < 1000) {
curbutton = curbutton + 1;
@ -207,7 +207,7 @@ var network_records = createReactClass({
</div> :
null
}
<div className="section">
<div className="section" key="contents">
<table className="list records">
<thead></thead>
<tbody>

View File

@ -198,7 +198,7 @@ var network_records = createReactClass({
return (
<>
{ paginate ?
<div className="section">
<div className="section" key="paginatebuttons">
{songids.map(function(songid) {
if (songid < 10000000) {
curbutton = curbutton + 1;
@ -221,7 +221,7 @@ var network_records = createReactClass({
</div> :
null
}
<div className="section">
<div className="section" key="contents">
<table className="list records">
<thead></thead>
<tbody>

View File

@ -179,7 +179,7 @@ var network_records = createReactClass({
return (
<span>
{ paginate ?
<div className="section popn-nav">
<div className="section popn-nav" key="paginatebuttons">
{songids.map(function(songid) {
if (songid < 0) {
curbutton = curbutton + 1;
@ -202,7 +202,7 @@ var network_records = createReactClass({
</div> :
null
}
<div className="section">
<div className="section" key="contents">
<table className="list records">
<thead></thead>
<tbody>

View File

@ -197,7 +197,7 @@ var network_records = createReactClass({
return (
<span>
{ paginate ?
<div className="section">
<div className="section" key="paginatebuttons">
{songids.map(function(songid) {
if (songid < 0) {
curbutton = curbutton + 1;
@ -220,7 +220,7 @@ var network_records = createReactClass({
</div> :
null
}
<div className="section">
<div className="section" key="contents">
<table className="list records">
<thead></thead>
<tbody>