aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/IconBox.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/nodes/IconBox.tsx')
-rw-r--r--src/client/views/nodes/IconBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/IconBox.tsx b/src/client/views/nodes/IconBox.tsx
index ef9885bcf..92cb5a9c9 100644
--- a/src/client/views/nodes/IconBox.tsx
+++ b/src/client/views/nodes/IconBox.tsx
@@ -38,7 +38,7 @@ export class IconBox extends React.Component<FieldViewProps> {
}
public static titleScript(inputDoc: Doc) {
const maxDoc = DocListCast(inputDoc.maximizedDocs);
- if (maxDoc.length === 1 && StrCast(maxDoc[0].title).startsWith("-")) {
+ if (maxDoc.length === 1) {
return maxDoc[0].title + ".icon";
}
return maxDoc.length > 1 ? "-multiple-.icon" : "???";