mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-16 03:08:13 +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
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import { isEmpty, isEqual } from 'lodash';
|
import { isEmpty, isEqual, uniqBy } from 'lodash';
|
||||||
import { DateRangeObject } from 'Models';
|
import { DateRangeObject } from 'Models';
|
||||||
import React, {
|
import React, {
|
||||||
createContext,
|
createContext,
|
||||||
@ -254,7 +254,7 @@ const DataInsightProvider = ({ children }: DataInsightProviderProps) => {
|
|||||||
data: kpiList,
|
data: kpiList,
|
||||||
},
|
},
|
||||||
teamFilter: {
|
teamFilter: {
|
||||||
options: teamsOptions.options,
|
options: uniqBy(teamsOptions.options, 'id'),
|
||||||
selectedKeys: teamsOptions.selectedOptions,
|
selectedKeys: teamsOptions.selectedOptions,
|
||||||
onChange: handleTeamChange,
|
onChange: handleTeamChange,
|
||||||
onGetInitialOptions: fetchDefaultTeamOptions,
|
onGetInitialOptions: fetchDefaultTeamOptions,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user