lint: formatting

This commit is contained in:
Jacob Overgaard
2024-07-02 14:14:22 +02:00
parent 422a3b1fa4
commit dc6bbe601f

View File

@@ -36,7 +36,7 @@ export class UmbArrayState<T> extends UmbDeepState<T[]> {
sortBy(sortMethod?: (a: T, b: T) => number) {
this.#sortMethod = sortMethod;
const value = this.getValue();
if(value) {
if (value) {
super.setValue([...value].sort(this.#sortMethod));
}
return this;