@provoly/dashboard 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6516,7 +6516,7 @@ const frTranslations = {
6516
6516
  entities: {
6517
6517
  dashboard: 'Tableaux de bord'
6518
6518
  },
6519
- addTag: 'Ajouter un noueau tag'
6519
+ addTag: 'Ajouter un nouveau tag'
6520
6520
  },
6521
6521
  'abac-rules': {
6522
6522
  delete: 'Supprimer',
@@ -6804,9 +6804,10 @@ class AdminDatasetService {
6804
6804
  this.httpClient = httpClient;
6805
6805
  }
6806
6806
  addDataset(dataset) {
6807
- return this.store
6808
- .select(ConfigSelectors.refUrl)
6809
- .pipe(mergeMap((url) => this.httpClient.post(encodeURI(`${url}/datasets`), dataset)));
6807
+ return this.store.select(ConfigSelectors.refUrl).pipe(mergeMap((url) => this.httpClient.post(encodeURI(`${url}/datasets`), {
6808
+ ...dataset,
6809
+ categories: dataset.categories?.map((category) => category.id)
6810
+ })));
6810
6811
  }
6811
6812
  updateDataset(dataset) {
6812
6813
  return this.store.select(ConfigSelectors.refUrl).pipe(mergeMap((url) => this.httpClient.put(encodeURI(`${url}/datasets`), {