empty array as input only clears all saved categories

This commit is contained in:
Moriz Wahl 2022-09-06 18:46:47 +02:00
parent b262b16cf2
commit ab662db0e4

View File

@ -286,6 +286,10 @@ export default {
{ id },
)
})
// frontend gives [] when all categories are selected (default)
if (activeCategories.length === 0) return true
const writeTxResultPromise = session.writeTransaction(async (transaction) => {
const saveCategorySettingsResponse = await transaction.run(
`