diff --git a/resources/ts/Components/Pages/RecordPage.tsx b/resources/ts/Components/Pages/RecordPage.tsx index d9d7da18f..8b8874f12 100644 --- a/resources/ts/Components/Pages/RecordPage.tsx +++ b/resources/ts/Components/Pages/RecordPage.tsx @@ -35,9 +35,13 @@ export default abstract class RecordPage, A extends Re } async loadRecord(recordId?: number | string) { - if (recordId) { - const response = await this.modelQuery().find(recordId); - this.record = response.getData() || undefined; + if (recordId && recordId !== 'new' && !this.record) { + try { + const response = await this.modelQuery().find(recordId); + this.record = response.getData() || undefined; + } catch { + // Do nothing + } } if (!this.record) {