-
Notifications
You must be signed in to change notification settings - Fork 796
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(manager): use typeof function instead of directly comparison #1481
Conversation
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 don't understand, how is that an issue? It's working. The links you sent are for Java?
It is just example on Java. This is recommendation: https://codeql.github.com/codeql-query-help/javascript/js-comparison-between-incompatible-types/ |
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.
It needs to be the string "undefined"
not the undefined
object
src/server_manager/web_app/ui_components/outline-server-settings.ts
Outdated
Show resolved
Hide resolved
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.
All the workflows are passed! The PR is ready for merge, imho :)
https://github.com/murka/outline-server/actions/runs/7652358841
@daniellacosse another look? |
src/server_manager/web_app/ui_components/outline-server-settings.ts
Outdated
Show resolved
Hide resolved
I'm fine with that!
…On Tue, Jan 30, 2024, 3:54 PM Vinicius Fortuna ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/server_manager/web_app/ui_components/outline-server-settings.ts
<#1481 (comment)>
:
> return;
- } else if (isDataLimitEnabled === wasDataLimitEnabled) {
+ }
+ const isDataLimitEnabled = e.detail.value === 'enabled';
+ if (isDataLimitEnabled === this.isDefaultDataLimitEnabled) {
Perhaps name it enableDataLimit?
if (this.isDefaultDataLimitEnabled === enableDataLimit) {
return;}
—
Reply to this email directly, view it on GitHub
<#1481 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4V5VCMPFV7WWFH5FUGSTDYRFMZFAVCNFSM6AAAAABCJECPSKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQNJSGM2DCMBTHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
src/server_manager/web_app/ui_components/outline-server-settings.ts
Outdated
Show resolved
Hide resolved
…gs.ts Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>
@murka it seems like the test failed. Can you take a look? |
@fortuna, I fix that. All jobs is done: https://github.com/murka/outline-server/actions/runs/7743696038/ |
Fix CWE-570 and CWE-571
More info: https://github.com/murka/outline-server/security/code-scanning/3