mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
fix nullptr startsWith
This commit is contained in:
@@ -296,7 +296,7 @@ export class PreviewModel implements ViewModel {
|
||||
click: () => this.refreshCallback?.(),
|
||||
},
|
||||
] as IconButtonDecl[];
|
||||
} else if (!isCeView && mimeType.startsWith("text/markdown")) {
|
||||
} else if (!isCeView && mimeType?.startsWith("text/markdown")) {
|
||||
return [
|
||||
{
|
||||
elemtype: "iconbutton",
|
||||
|
||||
Reference in New Issue
Block a user