mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
empty array as input only clears all saved categories
This commit is contained in:
parent
b262b16cf2
commit
ab662db0e4
@ -286,6 +286,10 @@ export default {
|
|||||||
{ id },
|
{ id },
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// frontend gives [] when all categories are selected (default)
|
||||||
|
if (activeCategories.length === 0) return true
|
||||||
|
|
||||||
const writeTxResultPromise = session.writeTransaction(async (transaction) => {
|
const writeTxResultPromise = session.writeTransaction(async (transaction) => {
|
||||||
const saveCategorySettingsResponse = await transaction.run(
|
const saveCategorySettingsResponse = await transaction.run(
|
||||||
`
|
`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user