!214 适配数据为undefined出现的crash

Merge pull request !214 from nobbo/master
This commit is contained in:
openharmony_ci
2023-06-29 10:58:41 +00:00
committed by Gitee
@@ -320,7 +320,7 @@ export struct NoteItemComp {
.borderRadius(24)
.linearGradient({
direction: GradientDirection.Right,
colors: this.selectedNoteData.uuid == this.noteItem.uuid ? [[0xffcdae, 0.0], [0xFfece2, 1.0]] : [[0xffffff, 0.0], [0xffffff, 1.0]]
colors: this.selectedNoteData?.uuid == this.noteItem.uuid ? [[0xffcdae, 0.0], [0xFfece2, 1.0]] : [[0xffffff, 0.0], [0xffffff, 1.0]]
})
.onClick(() => {
if (this.search) {