358 |
359 |
366 | {item.properties?.map((tabp) => {
367 | return (
368 |
369 | {
373 | setList(
374 | list.map((i) => {
375 | if (item.id === i.id) {
376 | return {
377 | ...item,
378 | properties: item.properties!.map((t) => {
379 | if (t.id === tabp.id) {
380 | return {
381 | ...tabp,
382 | id: tabp.id,
383 | properties: cloneDeep(
384 | newState
385 | ) as IDraggableList[]
386 | }
387 | }
388 | return t
389 | })
390 | }
391 | }
392 | return i
393 | }),
394 | null,
395 | { dragging: null }
396 | )
397 | }}
398 | >
399 |
400 | )
401 | })}
402 |
403 |
404 |
405 | )
406 | default:
407 | return (
408 |