aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/util/DictationManager.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/util/DictationManager.ts b/src/client/util/DictationManager.ts
index 5c318fc9b..3e130f984 100644
--- a/src/client/util/DictationManager.ts
+++ b/src/client/util/DictationManager.ts
@@ -21,11 +21,11 @@ namespace CORE {
export namespace Validators {
- const tryCast = <T extends CastCtor>(view: DocumentView, ctor: T) => Cast(Doc.GetProto(view.props.Document).data, ctor);
+ const tryCast = <T extends CastCtor>(view: DocumentView, ctor: T) => Cast(Doc.GetProto(view.props.Document).data, ctor) !== undefined;
- export const isCollectionView: ActionPredicate = (target: DocumentView) => tryCast(target, listSpec(Doc)) !== undefined;
+ export const isCollectionView: ActionPredicate = (target: DocumentView) => tryCast(target, listSpec(Doc));
- export const isImageView: ActionPredicate = (target: DocumentView) => tryCast(target, ImageField) !== undefined;
+ export const isImageView: ActionPredicate = (target: DocumentView) => tryCast(target, ImageField);
}