diff --git a/Dockerfile b/Dockerfile index 464960b..a6d6129 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ WORKDIR /data COPY ./package.json ./yarn.lock ./playwright.config.ts ./ # Increase timeout to pass github actions arm64 build -RUN yarn install --network-timeout 10000000 +RUN --mount=type=cache,sharing=locked,target=/usr/local/share/.cache/yarn yarn install --network-timeout 10000000 RUN npx playwright install-deps && \ apt-get clean && \ diff --git a/components/ModalContent/PreservedFormatsModal.tsx b/components/ModalContent/PreservedFormatsModal.tsx index b9b51c6..af3053c 100644 --- a/components/ModalContent/PreservedFormatsModal.tsx +++ b/components/ModalContent/PreservedFormatsModal.tsx @@ -69,11 +69,13 @@ export default function PreservedFormatsModal({ onClose, activeLink }: Props) { const isReady = () => { return ( - collectionOwner.archiveAsScreenshot === - (link && link.pdf && link.pdf !== "pending") && - collectionOwner.archiveAsPDF === - (link && link.pdf && link.pdf !== "pending") && link && + (collectionOwner.archiveAsScreenshot === true + ? link.pdf && link.pdf !== "pending" + : true) && + (collectionOwner.archiveAsPDF === true + ? link.pdf && link.pdf !== "pending" + : true) && link.readable && link.readable !== "pending" );