view data fixes
This commit is contained in:
@@ -22,22 +22,50 @@ export default async function LeagueSettingsPage({ params }: Props) {
|
||||
}
|
||||
// For serverError, show the template with empty data
|
||||
return <LeagueSettingsTemplate viewData={{
|
||||
leagueId,
|
||||
league: {
|
||||
id: leagueId,
|
||||
name: 'Unknown League',
|
||||
description: 'League information unavailable',
|
||||
visibility: 'private',
|
||||
ownerId: 'unknown',
|
||||
createdAt: '1970-01-01T00:00:00Z',
|
||||
updatedAt: '1970-01-01T00:00:00Z',
|
||||
},
|
||||
config: {
|
||||
maxDrivers: 0,
|
||||
scoringPresetId: 'unknown',
|
||||
allowLateJoin: false,
|
||||
requireApproval: false,
|
||||
basics: {
|
||||
name: 'Unknown League',
|
||||
description: 'League information unavailable',
|
||||
visibility: 'private',
|
||||
gameId: 'unknown',
|
||||
},
|
||||
structure: {
|
||||
mode: 'solo',
|
||||
maxDrivers: 0,
|
||||
},
|
||||
championships: {
|
||||
enableDriverChampionship: true,
|
||||
enableTeamChampionship: false,
|
||||
enableNationsChampionship: false,
|
||||
enableTrophyChampionship: false,
|
||||
},
|
||||
scoring: {
|
||||
patternId: 'unknown',
|
||||
},
|
||||
dropPolicy: {
|
||||
strategy: 'none',
|
||||
},
|
||||
timings: {},
|
||||
stewarding: {
|
||||
decisionMode: 'single_steward',
|
||||
requireDefense: false,
|
||||
defenseTimeLimit: 24,
|
||||
voteTimeLimit: 24,
|
||||
protestDeadlineHours: 24,
|
||||
stewardingClosesHours: 48,
|
||||
notifyAccusedOnProtest: true,
|
||||
notifyOnVoteRequired: true,
|
||||
},
|
||||
},
|
||||
presets: [],
|
||||
owner: null,
|
||||
members: [],
|
||||
}} />;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user