Skip to content

Commit b6df9d5

Browse files
committed
Fix
1 parent fc8e5db commit b6df9d5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

apps/demos/Demos/TagBox/Overview/React/App.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,19 +167,19 @@ function App() {
167167
>
168168
<p>
169169
<b>Name: </b>
170-
<span>{product.Name}</span>
170+
<span>{product?.Name}</span>
171171
</p>
172172
<p>
173173
<b>Price: </b>
174-
<span>{product.Price}</span>
174+
<span>{product?.Price}</span>
175175
</p>
176176
<p>
177177
<b>In-stock: </b>
178-
<span>{product.Current_Inventory}</span>
178+
<span>{product?.Current_Inventory}</span>
179179
</p>
180180
<p>
181181
<b>Category: </b>
182-
<span>{product.Category}</span>
182+
<span>{product?.Category}</span>
183183
</p>
184184
</Popover>
185185
</div>

apps/demos/Demos/TagBox/Overview/ReactJs/App.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,19 +159,19 @@ function App() {
159159
>
160160
<p>
161161
<b>Name: </b>
162-
<span>{product.Name}</span>
162+
<span>{product?.Name}</span>
163163
</p>
164164
<p>
165165
<b>Price: </b>
166-
<span>{product.Price}</span>
166+
<span>{product?.Price}</span>
167167
</p>
168168
<p>
169169
<b>In-stock: </b>
170-
<span>{product.Current_Inventory}</span>
170+
<span>{product?.Current_Inventory}</span>
171171
</p>
172172
<p>
173173
<b>Category: </b>
174-
<span>{product.Category}</span>
174+
<span>{product?.Category}</span>
175175
</p>
176176
</Popover>
177177
</div>

0 commit comments

Comments
 (0)