mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 21:50:35 +02:00
remove animations and various smart playlist adjustments
This commit is contained in:
@@ -276,10 +276,13 @@ export const PlaylistQueryBuilder = forwardRef(
|
||||
|
||||
const handleDeleteRuleGroup = useCallback((args: DeleteArgs) => {
|
||||
const { groupIndex, level, uniqueId } = args;
|
||||
const path = level === 0 ? 'group' : getTypePath(groupIndex);
|
||||
const path = level === 0 ? 'group' : getGroupPath(level - 1, groupIndex.slice(0, -1));
|
||||
|
||||
setFilters((prev) => {
|
||||
const currentGroups = get(prev, path) || [];
|
||||
const currentGroups = get(prev, path);
|
||||
if (!Array.isArray(currentGroups)) {
|
||||
return prev;
|
||||
}
|
||||
return setWith(
|
||||
clone(prev),
|
||||
path,
|
||||
|
||||
Reference in New Issue
Block a user