[bugfix]: fix update rating for items with no data node
This commit is contained in:
parent
960c126283
commit
753ca01d41
1 changed files with 1 additions and 1 deletions
|
@ -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 = [];
|
||||||
|
|
Reference in a new issue