Update def.ts
This commit is contained in:
parent
5d93bf527c
commit
8090429e9a
|
@ -374,6 +374,11 @@ export const PREF_DEF = {
|
||||||
watermarkPresets: {
|
watermarkPresets: {
|
||||||
accountDependent: true,
|
accountDependent: true,
|
||||||
default: [] as WatermarkPreset[],
|
default: [] as WatermarkPreset[],
|
||||||
|
mergeStrategy: (a, b) => {
|
||||||
|
const sameIdExists = a.some(x => b.some(y => x.id === y.id));
|
||||||
|
if (sameIdExists) throw new Error();
|
||||||
|
return a.concat(b);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
defaultWatermarkPresetId: {
|
defaultWatermarkPresetId: {
|
||||||
accountDependent: true,
|
accountDependent: true,
|
||||||
|
|
Loading…
Reference in New Issue