This commit is contained in:
seb
2026-09-25 12:22:48 +02:00
parent a3db1742e7
commit e5b43361cc

View File

@@ -54,7 +54,7 @@ export default class NumberSettingsPanel extends Component {
this.setState({ status: 'loading', error: null }); this.setState({ status: 'loading', error: null });
try { try {
const numbers = requireArray( const numbers = requireArray(
await (this.context.numbers ?? this.context.numberPromise), await this.context.updateNumber(),
'numbers', 'numbers',
); );
const drafts = Object.fromEntries( const drafts = Object.fromEntries(
@@ -190,13 +190,6 @@ export default class NumberSettingsPanel extends Component {
if (status === 'failed') { if (status === 'failed') {
return <BackendError error={error} onRetry={this.handleRetry} />; return <BackendError error={error} onRetry={this.handleRetry} />;
} }
if (numbers.length === 0) {
return (
<Typography variant="body2" color="text.secondary">
Keine Nummernkreise.
</Typography>
);
}
return ( return (
<TableContainer> <TableContainer>