|
243 | 243 | </ul> |
244 | 244 |
|
245 | 245 | <ul class="u-flex u-flex-vertical u-margin-block-start-16"> |
246 | | - {#if resources.includes('user')} |
| 246 | + {#if resources?.includes('user')} |
247 | 247 | <li class="checkbox-field"> |
248 | 248 | <input |
249 | 249 | type="checkbox" |
|
263 | 263 | <div /> |
264 | 264 | <span>Import all users</span> |
265 | 265 |
|
266 | | - {#if resources.includes('team')} |
| 266 | + {#if resources?.includes('team')} |
267 | 267 | <ul> |
268 | 268 | <li class="checkbox-field"> |
269 | 269 | <input |
|
288 | 288 | </li> |
289 | 289 | {/if} |
290 | 290 |
|
291 | | - {#if resources.includes('database')} |
| 291 | + {#if resources?.includes('database')} |
292 | 292 | <li class="checkbox-field"> |
293 | 293 | <input |
294 | 294 | type="checkbox" |
|
307 | 307 | <div /> |
308 | 308 | <span>Import all databases, including collections, indexes and attributes</span> |
309 | 309 |
|
310 | | - {#if resources.includes('document')} |
| 310 | + {#if resources?.includes('document')} |
311 | 311 | <ul> |
312 | 312 | <li class="checkbox-field"> |
313 | 313 | <input |
|
332 | 332 | </li> |
333 | 333 | {/if} |
334 | 334 |
|
335 | | - {#if resources.includes('function') && isVersionAtLeast(version, '1.4.0')} |
| 335 | + {#if resources?.includes('function') && isVersionAtLeast(version, '1.4.0')} |
336 | 336 | <li class="checkbox-field"> |
337 | 337 | <input |
338 | 338 | type="checkbox" |
|
351 | 351 | <div /> |
352 | 352 | <span>Import all functions and their active deployment</span> |
353 | 353 | <ul> |
354 | | - {#if resources.includes('envVar')} |
| 354 | + {#if resources?.includes('envVar')} |
355 | 355 | <li class="checkbox-field"> |
356 | 356 | <input |
357 | 357 | type="checkbox" |
|
364 | 364 | <span>Import all environment variables</span> |
365 | 365 | </li> |
366 | 366 | {/if} |
367 | | - {#if resources.includes('deployment')} |
| 367 | + {#if resources?.includes('deployment')} |
368 | 368 | <li class="checkbox-field"> |
369 | 369 | <input |
370 | 370 | type="checkbox" |
|
381 | 381 | </li> |
382 | 382 | {/if} |
383 | 383 |
|
384 | | - {#if resources.includes('bucket') && resources.includes('file')} |
| 384 | + {#if resources?.includes('bucket') && resources?.includes('file')} |
385 | 385 | <li class="checkbox-field"> |
386 | 386 | <input |
387 | 387 | type="checkbox" |
|
0 commit comments