File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import TaskTesting from '../../lib';
44
55export const FooTabDynamic = ( ) => {
66 const render = useCallback ( ( { output } ) => {
7- return < div > Dynamic tab: { JSON . stringify ( output . variables ) . substring ( 0 , 10 ) } ...</ div > ;
7+ return < div > Dynamic tab: { output ?. variables ? ` ${ JSON . stringify ( output . variables ) . substring ( 0 , 10 ) } ...` : '-' } </ div > ;
88 } , [ ] ) ;
99
1010 return < TaskTesting . Tab
@@ -23,7 +23,7 @@ export const FooTabStatic = () => {
2323
2424export const FooLinkDynamic = ( ) => {
2525 const render = useCallback ( ( { output } ) => {
26- return < div > Dynamic link: { JSON . stringify ( output . variables ) . substring ( 0 , 10 ) } ...</ div > ;
26+ return < div > Dynamic link: { output ?. variables ? ` ${ JSON . stringify ( output . variables ) . substring ( 0 , 10 ) } ...` : '-' } </ div > ;
2727 } , [ ] ) ;
2828
2929 return < TaskTesting . Link
You can’t perform that action at this time.
0 commit comments