-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: should not save system variables to trigger #2363
Conversation
@@ -77,6 +87,10 @@ export class ContentService { | |||
} | |||
} | |||
|
|||
private isSystemVariable(variableName: string): boolean { | |||
return TemplateSystemVariables.includes(variableName.includes('.') ? variableName.split('.')[0] : variableName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return TemplateSystemVariables.includes(variableName.includes('.') ? variableName.split('.')[0] : variableName); | |
const variable = variableName.includes('.') ? variableName.split('.')[0] : variableName | |
return TemplateSystemVariables.includes(variable); |
I feel this will be much clearer to read
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am actually not sure I agree🙈 For me its easier having that context in the same line
But I don't mind changing it if you feel strongly about it :) @BiswaViraj
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's okay, just a personal preference
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
What change does this PR introduce?
Fix so system variables (step, subscriber etc) are not saved to trigger => not shown as variables in the trigger snippet that user can apply values to them
Why was this change needed?
Other information (Screenshots)