-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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: set url to null instead of https when it is null #5804
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/h8k53osbs |
@iamareebjamal how to allow null in an URL field on the server side? |
Codecov Report
@@ Coverage Diff @@
## development #5804 +/- ##
===============================================
- Coverage 23.45% 23.39% -0.06%
===============================================
Files 512 513 +1
Lines 5445 5479 +34
Branches 63 65 +2
===============================================
+ Hits 1277 1282 +5
- Misses 4152 4180 +28
- Partials 16 17 +1
Continue to review full report at Codecov.
|
@@ -63,7 +63,11 @@ export default class LinkField extends Component<Args> { | |||
setValue(event: { target: HTMLInputElement }): void { | |||
const text = event.target.value; | |||
this.value = this.fixValue(text); | |||
this.args.onChange(this.finalValue); | |||
if (this.value) { |
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.
this.value ? this.finalValue : this
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 is showing
Type 'this' is not assignable to type 'string'.
Type 'LinkField' is not assignable to type 'string'.
Fixes #5779
Checklist
development
branch.