Reformat codebase with trailing commas in functions (#2006)

* style: 💄 Update trailing commas in API

* style: 💄 Update trailing commas in core

* style: 💄 Update trailing commas in rose

* style: 💄 Update trailing commas in admin

* style: 💄 Update trailing commas in desktop
This commit is contained in:
Zhihe Li authored and GitHub committed 2023-11-22 14:07:41 -05:00
1 parent cb3a9e3bdc
commit bcf004b8a4
423 files changed
+1636 -1605

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@ export default class AuthMethodSerializer extends ApplicationSerializer {
normalizeArrayResponse() {
const normalized = super.normalizeArrayResponse(...arguments);
normalized.data = normalized.data.sort((a) =>
a.attributes.is_primary ? -1 : 1
a.attributes.is_primary ? -1 : 1,
);
return normalized;
}