Fix id of Items, saving
This commit is contained in:
@ -32,7 +32,7 @@ struct FileListView: View {
|
||||
guard !searchString.isEmpty else {
|
||||
return filesBySelectedType
|
||||
}
|
||||
return filesBySelectedType.filter { $0.id.contains(searchString) }
|
||||
return filesBySelectedType.filter { $0.identifier.contains(searchString) }
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
@ -55,10 +55,10 @@ struct FileListView: View {
|
||||
LazyVStack(spacing: 0) {
|
||||
ForEach(filteredFiles) { file in
|
||||
SelectableListItem(selected: selectedFile == file) {
|
||||
Text(file.id)
|
||||
Text(file.identifier)
|
||||
.lineLimit(1)
|
||||
}
|
||||
.id(file.id)
|
||||
.id(file.identifier)
|
||||
.onTapGesture {
|
||||
selectedFile = file
|
||||
}
|
||||
|
Reference in New Issue
Block a user