mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-15 10:48:31 +00:00
fix(ui): fix duplicate options with selected option for teams (#16773)
This commit is contained in:
parent
ce6870d906
commit
1f1dfd42af
@ -10,7 +10,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { isEmpty, isEqual } from 'lodash';
|
||||
import { isEmpty, isEqual, uniqBy } from 'lodash';
|
||||
import { DateRangeObject } from 'Models';
|
||||
import React, {
|
||||
createContext,
|
||||
@ -254,7 +254,7 @@ const DataInsightProvider = ({ children }: DataInsightProviderProps) => {
|
||||
data: kpiList,
|
||||
},
|
||||
teamFilter: {
|
||||
options: teamsOptions.options,
|
||||
options: uniqBy(teamsOptions.options, 'id'),
|
||||
selectedKeys: teamsOptions.selectedOptions,
|
||||
onChange: handleTeamChange,
|
||||
onGetInitialOptions: fetchDefaultTeamOptions,
|
||||
|
Loading…
x
Reference in New Issue
Block a user