FE
Size: a a a
FE
j
AP
А
FE
R
const lines = [
{
position: 1, attributes: {}
},
{
position: 2,
attributes: {
'section-item': { depth: '1', id: '6be8bd63-6488-4276-8efb-e991888e9ff5' }
},
},
{
position: 3,
attributes: {
list: {
depth: '1',
sectionId: '6be8bd63-6488-4276-8efb-e991888e9ff5',
}
},
},
{
position: 4,
attributes: {
'section-item': { depth: '2', id: 'e7b8c86c-b4d5-4873-a20c-446ef95224b2' }
},
},
{
position: 5,
attributes: {
list: {
depth: '2',
sectionId: 'e7b8c86c-b4d5-4873-a20c-446ef95224b2',
}
},
},
]
j
now
и el.due_date
меньше чем между now
и nearestDate
, то значение nearestDate
становится el.due_date
.j
const lines = [
{
position: 1, attributes: {}
},
{
position: 2,
attributes: {
'section-item': { depth: '1', id: '6be8bd63-6488-4276-8efb-e991888e9ff5' }
},
},
{
position: 3,
attributes: {
list: {
depth: '1',
sectionId: '6be8bd63-6488-4276-8efb-e991888e9ff5',
}
},
},
{
position: 4,
attributes: {
'section-item': { depth: '2', id: 'e7b8c86c-b4d5-4873-a20c-446ef95224b2' }
},
},
{
position: 5,
attributes: {
list: {
depth: '2',
sectionId: 'e7b8c86c-b4d5-4873-a20c-446ef95224b2',
}
},
},
]
j
S
I
Ю
S
R
const lines = [
{
position: 1, attributes: {},
children: []
},
{
position: 2,
attributes: {
'section-item': { depth: '1', id: '6be8bd63-6488-4276-8efb-e991888e9ff5' }
},
children: [
{
position: 3,
attributes: {
list: {
depth: '1',
sectionId: '6be8bd63-6488-4276-8efb-e991888e9ff5',
}
},
children: []
},
{
position: 4,
attributes: {
'section-item': { depth: '2', id: 'e7b8c86c-b4d5-4873-a20c-446ef95224b2' }
},
children: [
{
position: 5,
attributes: {
list: {
depth: '2',
sectionId: 'e7b8c86c-b4d5-4873-a20c-446ef95224b2',
}
},
children: []
},
]
},
]
},
]
R
Ю
R
S
const lines = [
{
position: 1, attributes: {},
children: []
},
{
position: 2,
attributes: {
'section-item': { depth: '1', id: '6be8bd63-6488-4276-8efb-e991888e9ff5' }
},
children: [
{
position: 3,
attributes: {
list: {
depth: '1',
sectionId: '6be8bd63-6488-4276-8efb-e991888e9ff5',
}
},
children: []
},
{
position: 4,
attributes: {
'section-item': { depth: '2', id: 'e7b8c86c-b4d5-4873-a20c-446ef95224b2' }
},
children: [
{
position: 5,
attributes: {
list: {
depth: '2',
sectionId: 'e7b8c86c-b4d5-4873-a20c-446ef95224b2',
}
},
children: []
},
]
},
]
},
]
S
R