Skip to content

Commit 77c064a

Browse files
committed
prettier update
1 parent bfd2d35 commit 77c064a

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

src/Umbraco.Web.UI.Client/src/packages/block/block-list/property-editors/block-list-editor/property-editor-ui-block-list.element.ts

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -244,26 +244,19 @@ export class UmbPropertyEditorUIBlockListElement
244244

245245
this.addValidator(
246246
'rangeUnderflow',
247-
() => {
248-
return this.localize.term(
247+
() =>
248+
this.localize.term(
249249
'validation_entriesShort',
250250
this._limitMin,
251-
(this._limitMin?? 0) - this.#entriesContext.getLength()
252-
);
253-
},
251+
(this._limitMin ?? 0) - this.#entriesContext.getLength(),
252+
),
254253
() => !!this._limitMin && this.#entriesContext.getLength() < this._limitMin,
255254
);
256-
255+
257256
this.addValidator(
258-
'rangeOverflow',
259-
() => {
260-
return this.localize.term(
261-
'validation_entriesExceed',
262-
this._limitMax,
263-
this.#entriesContext.getLength()
264-
);
265-
},
266-
() => !!this._limitMax && this.#entriesContext.getLength() > this._limitMax,
257+
'rangeOverflow',
258+
() => this.localize.term('validation_entriesExceed', this._limitMax, this.#entriesContext.getLength()),
259+
() => !!this._limitMax && this.#entriesContext.getLength() > this._limitMax,
267260
);
268261

269262
this.observe(this.#entriesContext.layoutEntries, (layouts) => {

0 commit comments

Comments
 (0)