From ed1f69c96f396384a770304d5f0b2f8dd043659d Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Mon, 25 Jan 2021 07:36:32 -0800 Subject: [PATCH] Fix load more behavior --- resources/views/components/search-view.blade.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/views/components/search-view.blade.php b/resources/views/components/search-view.blade.php index d9d50b0..dbcc729 100644 --- a/resources/views/components/search-view.blade.php +++ b/resources/views/components/search-view.blade.php @@ -46,8 +46,9 @@ this.results = [...this.results, ...data.data.map(result => result.attributes)]; if (this.number < data.meta.page['last-page']) { this.morePages = true; - } else { this.number++; + } else { + this.morePages = false; } }); },