From a338a41421cc79b797d0b7eb7b827781b2cc3cfa Mon Sep 17 00:00:00 2001 From: Allen Kinzalow Date: Fri, 6 Sep 2024 11:48:31 -0500 Subject: [PATCH] [#56] Display cache diff table row id column as a string (#57) --- .changeset/thick-snakes-applaud.md | 5 +++++ src/scripts/differences/builder/builder.utils.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/thick-snakes-applaud.md diff --git a/.changeset/thick-snakes-applaud.md b/.changeset/thick-snakes-applaud.md new file mode 100644 index 0000000..74911fb --- /dev/null +++ b/.changeset/thick-snakes-applaud.md @@ -0,0 +1,5 @@ +--- +"@osrs-wiki/cache-mediawiki": patch +--- + +Display cache diff table row id column as a string diff --git a/src/scripts/differences/builder/builder.utils.ts b/src/scripts/differences/builder/builder.utils.ts index 5441c76..a774d8f 100644 --- a/src/scripts/differences/builder/builder.utils.ts +++ b/src/scripts/differences/builder/builder.utils.ts @@ -77,7 +77,7 @@ export const formatEntryIdentifier = ( return Object.keys(urls).map( (url, index) => new MediaWikiExternalLink( - index === 0 ? (value as string) : `(${index})`, + index === 0 ? `${value}` : `(${index})`, `${urls[url as IndexURLType]}${value as string}` ) );