diff --git a/specifyweb/backend/context/views.py b/specifyweb/backend/context/views.py
index 87861acc126..c3ad4416777 100644
--- a/specifyweb/backend/context/views.py
+++ b/specifyweb/backend/context/views.py
@@ -329,7 +329,13 @@ def user(request):
obj_to_data(c)
for c in available_collections
]
- data['agent'] = obj_to_data(request.specify_user_agent) if request.specify_user_agent != None else None
+ current_agent = (
+ obj_to_data(request.specify_user_agent)
+ if request.specify_user_agent is not None
+ else None
+ )
+ data['agent'] = current_agent
+ data['current_agent'] = current_agent
if settings.RO_MODE or not request.user.is_authenticated:
data['usertype'] = "readonly"
diff --git a/specifyweb/frontend/js_src/lib/components/AppResources/__tests__/AppResourceEditButton.test.tsx b/specifyweb/frontend/js_src/lib/components/AppResources/__tests__/AppResourceEditButton.test.tsx
index 76e1b3e8977..c8aff34b80e 100644
--- a/specifyweb/frontend/js_src/lib/components/AppResources/__tests__/AppResourceEditButton.test.tsx
+++ b/specifyweb/frontend/js_src/lib/components/AppResources/__tests__/AppResourceEditButton.test.tsx
@@ -70,18 +70,18 @@ describe('AppResourceEditButton', () => {
const dialog = getByRole('dialog');
expect(dialog.innerHTML).toMatchInlineSnapshot(`
-"
"
-`);
+ "
"
+ `);
expect(handleDeleted).not.toHaveBeenCalled();
});
diff --git a/specifyweb/frontend/js_src/lib/components/Attachments/__tests__/uploadFile.test.ts b/specifyweb/frontend/js_src/lib/components/Attachments/__tests__/uploadFile.test.ts
index 8eddbdf7907..7439350e268 100644
--- a/specifyweb/frontend/js_src/lib/components/Attachments/__tests__/uploadFile.test.ts
+++ b/specifyweb/frontend/js_src/lib/components/Attachments/__tests__/uploadFile.test.ts
@@ -31,12 +31,15 @@ describe('uploadFile', () => {
return {
open: jest.fn(),
send: jest.fn((..._args: readonly unknown[]) => listeners[nextEvent]?.()),
- addEventListener: jest.fn((eventName: EventName, callback: () => void) => {
- listeners[eventName] = callback;
- }),
+ addEventListener: jest.fn(
+ (eventName: EventName, callback: () => void) => {
+ listeners[eventName] = callback;
+ }
+ ),
removeEventListener: jest.fn(
(eventName: EventName, callback: () => void) => {
- if (listeners[eventName] === callback) listeners[eventName] = undefined;
+ if (listeners[eventName] === callback)
+ listeners[eventName] = undefined;
}
),
upload: {
diff --git a/specifyweb/frontend/js_src/lib/components/Core/Main.tsx b/specifyweb/frontend/js_src/lib/components/Core/Main.tsx
index 9f9383537b4..881fd55ba00 100644
--- a/specifyweb/frontend/js_src/lib/components/Core/Main.tsx
+++ b/specifyweb/frontend/js_src/lib/components/Core/Main.tsx
@@ -38,7 +38,9 @@ export function Main({
}: {
readonly menuItems: RA