fix: 🐛 handle pdf ext case-insensitive
This commit is contained in:
parent
87f2870488
commit
a29752a3e5
@ -448,7 +448,8 @@ function Organizrr() {
|
||||
</Group>
|
||||
{form.values.documents
|
||||
.find((_d) => _d.id === d.id)
|
||||
?.file.name.endsWith(".pdf") && (
|
||||
?.file.name.toLowerCase()
|
||||
.endsWith(".pdf") && (
|
||||
<ScrollArea h={400} w="100%">
|
||||
<Document
|
||||
file={
|
||||
@ -518,9 +519,10 @@ function Organizrr() {
|
||||
<AppShell.Aside p="md" bg="var(--mantine-primary-color-0)">
|
||||
<Stack align="center">
|
||||
<Group style={{ alignSelf: "start" }}>
|
||||
<IconEye /> <Title order={3}>Vorschau</Title>
|
||||
<IconEye /> <Title order={3}>Preview</Title>
|
||||
</Group>
|
||||
{activeDocument && activeDocument.file.name.endsWith(".pdf") && (
|
||||
{activeDocument &&
|
||||
activeDocument.file.name.toLowerCase().endsWith(".pdf") && (
|
||||
<>
|
||||
<Text>{activeDocument.file.name}</Text>
|
||||
<ScrollArea w="100%">
|
||||
|
Loading…
Reference in New Issue
Block a user