From 919d7c010d2b4dfaffc311708d15e187dec4c51b Mon Sep 17 00:00:00 2001 From: "Brandon T. Kowalski" Date: Sun, 18 Jan 2026 16:51:23 -0500 Subject: [PATCH] Potential fix for https://github.com/rommapp/romm/issues/2891 --- backend/endpoints/rom.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/endpoints/rom.py b/backend/endpoints/rom.py index 12c11c301..54b13bbf3 100644 --- a/backend/endpoints/rom.py +++ b/backend/endpoints/rom.py @@ -1058,7 +1058,9 @@ async def update_rom( safe_int_or_none(data["tgdb_id"]) if "tgdb_id" in data else rom.tgdb_id ), "flashpoint_id": ( - data["flashpoint_id"] if "flashpoint_id" in data else rom.flashpoint_id + data["flashpoint_id"] or None + if "flashpoint_id" in data + else rom.flashpoint_id ), "hltb_id": ( safe_int_or_none(data["hltb_id"]) if "hltb_id" in data else rom.hltb_id