@equinor/roma-framework 2.0.1 → 2.0.3

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/roma-framework",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "repository": "https://github.com/equinor/tops-roma",
5
5
  "types": "./index.d.ts",
6
6
  "private": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/roma-framework",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "repository": "https://github.com/equinor/tops-roma",
5
5
  "types": "./index.d.ts",
6
6
  "private": false,
@@ -5325,7 +5325,12 @@ const useManageWatchList = (system) => {
5325
5325
  const setting2 = (data ?? []).filter(
5326
5326
  (f) => f.setting === "app-notifications"
5327
5327
  );
5328
- return setting2 && setting2.length > 0 ? setting2[0] : rootSchema.cast(useWatchDefaults, { assert: false });
5328
+ return setting2 && setting2.length > 0 ? setting2[0] : {
5329
+ appShortName: "notifications",
5330
+ isPublic: false,
5331
+ setting: "app-notifications",
5332
+ value: rootSchema.cast(useWatchDefaults, { assert: false })
5333
+ };
5329
5334
  }
5330
5335
  }
5331
5336
  });
@@ -5340,7 +5345,10 @@ const useManageWatchList = (system) => {
5340
5345
  createMutator.mutate(
5341
5346
  {
5342
5347
  userId,
5343
- data: setting2
5348
+ data: {
5349
+ ...setting2,
5350
+ userId
5351
+ }
5344
5352
  },
5345
5353
  {
5346
5354
  onSuccess: () => {