From f67ed976500770041a93a00ecd5aa700f663305b Mon Sep 17 00:00:00 2001 From: Noah Date: Mon, 14 Oct 2024 10:13:48 +0300 Subject: [PATCH 1/2] chore: merge --- build/linker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/linker/Dockerfile b/build/linker/Dockerfile index 4ed62d2af1..4be52f7b59 100644 --- a/build/linker/Dockerfile +++ b/build/linker/Dockerfile @@ -38,7 +38,7 @@ RUN apt-get update -qq \ && rm -rf /var/lib/apt/lists/* # fix issues with shared objects -RUN ls /usr/local/cuda-11.6/targets/x86_64-linux/lib/* | xargs -I{} ln -s {} /usr/lib/x86_64-linux-gnu/ \ +RUN ls /usr/local/cuda-11.4/targets/x86_64-linux/lib/* | xargs -I{} ln -s {} /usr/lib/x86_64-linux-gnu/ \ && ln -s libcuda.so /usr/lib/x86_64-linux-gnu/libcuda.so.1 \ && ln -s libnvidia-ml.so /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1 From 2482a24802e7ff39a761fc726feec16f34e2b7d8 Mon Sep 17 00:00:00 2001 From: Noah Date: Mon, 28 Oct 2024 09:31:48 +0200 Subject: [PATCH 2/2] fix(topics): fix topic pages where there are only notable sources and no non-notable sources --- static/js/sefaria/sefaria.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/static/js/sefaria/sefaria.js b/static/js/sefaria/sefaria.js index a33e3d3f65..be2da1ea30 100644 --- a/static/js/sefaria/sefaria.js +++ b/static/js/sefaria/sefaria.js @@ -2730,10 +2730,13 @@ _media: {}, } if (tabs["notable-sources"]) { - tabs["sources"]["title"] = {en: 'All Sources', he: Sefaria.translation('hebrew', 'All Sources')}; - //turn "sources" tab into 'super-set', containing all refs from all tabs: - const allRefs = [...tabs["notable-sources"].refs, ...tabs["sources"].refs]; - tabs["sources"].refs = allRefs; + if (!tabs.sources) { + tabs.sources = {refMap: {}, shouldDisplay: true, refs: []}; + } + tabs.sources.title = {en: 'All Sources', he: Sefaria.translation('hebrew', 'All Sources')}; + //turn "sources" tab into 'super-set', containing all refs from all tabs: + const allRefs = [...tabs["notable-sources"].refs, ...tabs.sources.refs]; + tabs.sources.refs = allRefs; } if (Sefaria.is_moderator){ tabs["admin"] = {...tabs["sources"]};