From 9772fea4edffa0e703097e61eeab33e18eba37fd Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Fri, 3 Jun 2022 16:57:03 -0500 Subject: [PATCH] Add sampleNamesShort to list summaries --- helpers/api/kind.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/helpers/api/kind.js b/helpers/api/kind.js index f1ff919..be70c71 100644 --- a/helpers/api/kind.js +++ b/helpers/api/kind.js @@ -50,7 +50,13 @@ export class KindList extends PaginatedList { // console.log( `Summary run ${ timeSummaryRun += 1 } times` ) return { ...getListSummaryNumbers( this.list ), - sampleNames: makeSummaryOfListings({ list: this.list }) + sampleNames: makeSummaryOfListings({ list: this.list }), + sampleNamesShort: makeSummaryOfListings({ + list: this.list, + length: 5, + random: true, + suffix: '' + }), } }