Closed tracy-french closed 8 months ago
Hi @tracy-french, thanks for the PR. It works when the old form styling is used, but not with the new form style (when the feature toggle
newFormStylingEnabled = true
).I believe you'd just need to add
?? null
to thevalue
prop to the "Property" select component in thenewFormStylingEnabled
branch of the render function on line 442.<Select id="property" aria-label="Property" isLoading={loading} options={properties} value={currentProperty ?? null} // <----- onChange={this.onPropertyChange} placeholder="Select a property" allowCustomValue={true} isSearchable={true} onCreateOption={this.onSetPropertyId} formatCreateLabel={(txt) => `Property ID: ${txt}`} menuPlacement="bottom" />
Thank you, @kevinwcyu! I'll make the change.
@kevinwcyu Updated!
Which issue(s) this PR fixes: https://github.com/grafana/iot-sitewise-datasource/issues/273