do not use meta

This commit is contained in:
seb
2026-09-18 08:34:42 +02:00
parent c0082cea65
commit 02e9a555d6
2 changed files with 9 additions and 54 deletions

View File

@@ -569,10 +569,13 @@ class LieferungNeuPage extends PureComponent {
handleAttachmentClick(attachment) {
if (!attachment) return;
const isPdf =
attachment.type === 'application/pdf' ||
attachment.name?.toLowerCase().endsWith('.pdf');
const isText =
attachment.type?.startsWith('text/') ||
attachment.name?.toLowerCase().endsWith('.txt') ||
Boolean(attachment.text);
!isPdf &&
(attachment.type?.startsWith('text/') ||
attachment.name?.toLowerCase().endsWith('.txt'));
if (isText) {
this.setState({