We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f720e9b commit f3efdcfCopy full SHA for f3efdcf
playground/forms/custom-toolbar-radio-button/index.ts
@@ -8,6 +8,8 @@ const item = {
8
id: "add-radio-group",
9
title: "Add Radio Group",
10
onPress: async () => {
11
+ if (!instance) return;
12
+
13
const radioWidget1 = new window.NutrientViewer.Annotations.WidgetAnnotation(
14
{
15
id: window.NutrientViewer.generateInstantId(),
@@ -54,7 +56,7 @@ const item = {
54
56
defaultValue: "1",
55
57
},
58
);
- await instance!.create([radioWidget1, radioWidget2, formField]);
59
+ await instance.create([radioWidget1, radioWidget2, formField]);
60
61
};
62
0 commit comments