[bugfix]: fix update rating for items with no data node

This commit is contained in:
Kendall Garner 2024-02-29 17:28:46 -08:00
parent 960c126283
commit 753ca01d41
No known key found for this signature in database
GPG key ID: 18D2767419676C87

View file

@ -522,7 +522,7 @@ export const ContextMenuProvider = ({ children }: ContextMenuProviderProps) => {
const handleUpdateRating = useCallback( const handleUpdateRating = useCallback(
(rating: number) => { (rating: number) => {
if (!ctx.dataNodes || !ctx.data) return; if (!ctx.dataNodes && !ctx.data) return;
let uniqueServerIds: string[] = []; let uniqueServerIds: string[] = [];
let items: AnyLibraryItems = []; let items: AnyLibraryItems = [];