Skip to content

Commit

Permalink
chore: Minor Name Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wba2hi committed Jan 30, 2024
1 parent 5b94cb1 commit e4568aa
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,12 @@ class VSSPropertiesViewModel : ViewModel() {
Field.FIELD_METADATA,
)

private var _suggestions: Collection<String> by mutableStateOf(listOf())
val suggestions
get() = _suggestions
var suggestions: Set<String> by mutableStateOf(setOf())
private set

val datapoint: Datapoint
get() = vssProperties.valueType.createDatapoint(vssProperties.value)

// Meta data are always part of the properties
val property: Property
get() = Property(vssProperties.vssPath, listOf(vssProperties.fieldType))

Expand All @@ -71,10 +69,10 @@ class VSSPropertiesViewModel : ViewModel() {
}

fun updateSuggestions(vssPaths: Collection<String>) {
this._suggestions = createVssPathHierarchy(vssPaths)
suggestions = generateVssPathHierarchy(vssPaths)
}

private fun createVssPathHierarchy(paths: Collection<String>): TreeSet<String> {
private fun generateVssPathHierarchy(paths: Collection<String>): TreeSet<String> {
val pathSet = TreeSet<String>()

paths.forEach {
Expand Down

0 comments on commit e4568aa

Please sign in to comment.