// (C) 2024-2026 GoodData Corporation
import { areObjRefsEqual } from "@gooddata/sdk-model";
const setFilterViews = (state, action) => {
    state.filterViews = [
        ...state.filterViews.filter((item) => !areObjRefsEqual(item.dashboard, action.payload.dashboard)),
        action.payload,
    ];
    state.isLoading = false;
};
const setFilterLoading = (state, action) => {
    state.isLoading = action.payload;
};
export const filterViewsReducers = {
    setFilterViews,
    setFilterLoading,
};
