Return non-error if setting labels is a noop

This commit is contained in:
Jackson Harper 2023-06-21 20:24:36 +08:00
parent 82e4ecd524
commit cceff32e5f

View file

@ -74,6 +74,7 @@ export const updateLabelsInPage = async (
retry_on_conflict: 3,
})
if (body.result === 'noop') return true
if (body.result !== 'updated') return false
if (labelsToAdd) {
// publish labels to be added