-
Notifications
You must be signed in to change notification settings - Fork 1
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
Use cloneDeep() to make diagramOptions immutable #765
Conversation
Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-bush-002d75103-765.westeurope.2.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-bush-002d75103-765.westeurope.2.azurestaticapps.net |
|
||
@if (diagramOptions.description) { | ||
<p class="mb-4">{{ diagramOptions.description }}</p> | ||
@if (diagramOptionsInternal.description) { |
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.
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.
Created a new issue to handle this: #768
@@ -1,8 +1,8 @@ | |||
<article *ngIf="diagramOptions !== undefined"> | |||
<h1 class="h3 mb-3">{{ diagramOptions.title }}</h1> | |||
<article *ngIf="diagramOptionsInternal !== undefined"> |
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.
@proand The user might send diagramOption as null
. Maybe change diagramOptionsInternal !== undefined
@if(diagramOptionsInternal)
or
@if(diagramOptionsInternal != null)
or
@if(diagramOptionsInternal !== null && diagramOptionsInternal !== undefined)
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 have a little list (not exhaustive) of values, or missing values, in the diagramOptions that can give errors in current implementation. I'm pondering making a test of the input, and then jsut test for !diagramOptionsValid
or something like that... but probably best to create an issue for that, and go for your solution now.
Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-bush-002d75103-765.westeurope.2.azurestaticapps.net |
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.
LGTM!
The diagramOptions provided as imput to the component now seem to be untouched by FhiAngularHighchartsComponent :-)
* dev: Enhancement/highcharts category axis title (#763) Update CHANGELOG Fix selected value not visible before ng-select is touched
Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-bush-002d75103-765.westeurope.2.azurestaticapps.net |
* dev: Update qualitative series in _all.scss (#771)
Azure Static Web Apps: Your stage site is ready! Visit it here: https://nice-bush-002d75103-765.westeurope.2.azurestaticapps.net |
This closes #753