We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d1e1c6 commit 3b24cddCopy full SHA for 3b24cdd
specifyweb/frontend/js_src/lib/components/FormSliders/AttachmentsCollection.tsx
@@ -33,7 +33,7 @@ export function AttachmentsCollection({
33
);
34
35
const attachmentHasChanged =
36
- collection.models.length > 0 && collection.models.at(-1).needsSaved;
+ collection.models.length > 0 && collection.models.at(-1)?.needsSaved;
37
38
const attachments: RA<SerializedResource<Attachment>> = React.useMemo(
39
() =>
0 commit comments