From 6c69f64806a7370a6b4d209aee250ca16a878155 Mon Sep 17 00:00:00 2001 From: Tim DiLauro Date: Wed, 26 Jun 2024 13:17:02 -0400 Subject: [PATCH] Careful. --- src/components/ClassificationsForm.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/ClassificationsForm.tsx b/src/components/ClassificationsForm.tsx index 7e3f17d23..0809b6455 100644 --- a/src/components/ClassificationsForm.tsx +++ b/src/components/ClassificationsForm.tsx @@ -236,7 +236,8 @@ export default class ClassificationsForm extends React.Component< newBook.targetAgeRange[0] !== this.props.book.targetAgeRange[0] || newBook.targetAgeRange[1] !== this.props.book.targetAgeRange[1] || newBook.fiction !== this.props.book.fiction || - newBook.categories.sort() !== this.props.book.categories.sort() + newBook.categories.slice().sort().join("::") !== + this.props.book.categories.slice().sort().join("::") ); }