From bc5aabd683dde1cf11974815c1c6276c1506dd4f Mon Sep 17 00:00:00 2001 From: Steve McConnel Date: Thu, 2 May 2024 16:46:20 -0600 Subject: [PATCH] Ensure bloom bookorder url minVersion has decimal point value (BL-13403) The Version.Parse in Bloom requires at least "6.0" to parse. It chokes on "6". --- src/components/BookDetail/ArtifactHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/BookDetail/ArtifactHelper.ts b/src/components/BookDetail/ArtifactHelper.ts index 8f13290d..40db1663 100644 --- a/src/components/BookDetail/ArtifactHelper.ts +++ b/src/components/BookDetail/ArtifactHelper.ts @@ -81,7 +81,7 @@ function getBookOrderUrl(book: Book, forEdit: boolean) { // by all the versions that do this check. // We do need 6.0 to handle the forEdit parameter, so we will pass that and retrofit at least // 5.5 and 5.6 to do the check. - const minVersion = forEdit ? 6.0 : 4.8; + const minVersion = forEdit ? "6.0" : "4.8"; // string to ensure it's passed with a decimal point value const forEditPart = forEdit ? `&forEdit=true&database-id=${book.id}`