From 8f4e95fc0ae7b333dc769adbba9cedff73215297 Mon Sep 17 00:00:00 2001 From: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com> Date: Mon, 2 Dec 2024 15:29:21 +0100 Subject: [PATCH] Index item comparison fix Signed-off-by: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com> --- backend/internal/search/searchtypes/index_item.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/internal/search/searchtypes/index_item.go b/backend/internal/search/searchtypes/index_item.go index b83bcf4..72073ad 100644 --- a/backend/internal/search/searchtypes/index_item.go +++ b/backend/internal/search/searchtypes/index_item.go @@ -23,7 +23,8 @@ type IndexItem struct { func (i IndexItem) Equals(other IndexItem) bool { if i.ID != other.ID || i.Type != other.Type || i.Addr != other.Addr || i.Version != other.Version || - i.Title != other.Title || i.Description != other.Description || i.ParentID != other.ParentID || i.Popularity != other.Popularity { + i.Title != other.Title || i.Description != other.Description || i.ParentID != other.ParentID || + i.Popularity != other.Popularity || i.Warnings != other.Warnings { return false } if len(i.LinkVariables) != len(other.LinkVariables) {