mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Validate pageId before adding labels
This commit is contained in:
parent
5f07f8cc64
commit
ce00274911
1 changed files with 2 additions and 2 deletions
|
|
@ -135,8 +135,8 @@ export const triggerActions = async (
|
|||
for (const action of rule.actions) {
|
||||
switch (action.type) {
|
||||
case RuleActionType.AddLabel:
|
||||
if (action.params.length === 0) {
|
||||
console.log('No label id provided')
|
||||
if (!data.id || action.params.length === 0) {
|
||||
console.log('invalid data for add label action')
|
||||
continue
|
||||
}
|
||||
await addLabels(
|
||||
|
|
|
|||
Loading…
Reference in a new issue