mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-06 06:58:21 +00:00
fix nullptr startsWith
This commit is contained in:
parent
663cb2cce7
commit
01d98fccd2
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue