Remove switch click handling in "ExtensionInfo" "SourceCard"

The click handling caused the mutation to be executed twice due to the click handling on the CardActionArea itself.
This then caused issues with the set metadata, because the server doesn't prevent storing the same "sourceId" and "meta key" combination twice.
This commit is contained in:
schroda
2025-07-12 18:02:50 +02:00
parent 2d44fc8d00
commit 57e7a806bd

View File

@@ -175,7 +175,7 @@ const SourceCard = (source: SourceIdInfo & SourceLanguageInfo & SourceConfigurab
</IconButton>
</CustomTooltip>
)}
<Switch checked={isEnabled} onChange={(_, checked) => updateSetting('isEnabled', checked)} />
<Switch checked={isEnabled} />
</ListCardContent>
</CardActionArea>
</Card>