diff --git a/interface/src/components/BackgroundSelector.tsx b/interface/src/components/BackgroundSelector.tsx
index 1f9a2c66..a11a5629 100644
--- a/interface/src/components/BackgroundSelector.tsx
+++ b/interface/src/components/BackgroundSelector.tsx
@@ -87,14 +87,7 @@ export default function BackgroundSelector({ selectedType, setSelectedType, isEd
store.delete(fileId);
setBackgrounds(prev => prev.filter(bg => bg.id !== fileId));
-
-
- ))}
- {backgrounds.concat(presetBackgrounds as Background[]).filter(bg => bg.type === 'image' && bg.isPreset && !bg.isDownloaded && !downloadedPresetIds.includes(bg.id)).map(bg => (
+ // Check if the background being deleted is currently selected
if (fileId === selectedBackground) {
selectNoBackground(); // Disable the current background
}
@@ -130,24 +123,16 @@ export default function BackgroundSelector({ selectedType, setSelectedType, isEd
{backgrounds.filter(bg => bg.type === 'image').map(bg => (
-