Skip to content

Commit 148d455

Browse files
Add explicit parentheses to clarify operator precedence in orderIndex fallback
Co-authored-by: Julius Marminge <juliusmarminge@users.noreply.github.com>
1 parent 5b0f6c0 commit 148d455

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/src/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function mapProjectsFromReadModel(
155155
const orderIndex =
156156
previousIndex ??
157157
persistedIndex ??
158-
(usePersistedOrder ? persistedProjectOrderCwds.length : previous.length) + incomingIndex;
158+
((usePersistedOrder ? persistedProjectOrderCwds.length : previous.length) + incomingIndex);
159159
return { project, incomingIndex, orderIndex };
160160
})
161161
.toSorted((a, b) => {

0 commit comments

Comments
 (0)