mirror of
https://github.com/ZeroCatDev/Classworks.git
synced 2025-07-03 01:39:22 +00:00
1
This commit is contained in:
parent
49542e5359
commit
39d6bfec60
@ -441,7 +441,7 @@ export default {
|
|||||||
},
|
},
|
||||||
debouncedUpload: null,
|
debouncedUpload: null,
|
||||||
throttledReflow: null,
|
throttledReflow: null,
|
||||||
_sortedItemsCache: {
|
sortedItemsCache: {
|
||||||
key: "",
|
key: "",
|
||||||
value: [],
|
value: [],
|
||||||
},
|
},
|
||||||
@ -477,12 +477,12 @@ export default {
|
|||||||
const key = `${JSON.stringify(
|
const key = `${JSON.stringify(
|
||||||
this.state.homeworkData
|
this.state.homeworkData
|
||||||
)}_${this.state.subjectOrder.join()}_${this.dynamicSort}`;
|
)}_${this.state.subjectOrder.join()}_${this.dynamicSort}`;
|
||||||
if (this._sortedItemsCache.key === key) {
|
if (this.sortedItemsCache.key === key) {
|
||||||
return this._sortedItemsCache.value;
|
return this.sortedItemsCache.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
const items = Object.entries(this.state.homeworkData)
|
const items = Object.entries(this.state.homeworkData)
|
||||||
.filter(([_, value]) => value.content?.trim())
|
.filter(([, value]) => value.content?.trim())
|
||||||
.map(([key, value]) => ({
|
.map(([key, value]) => ({
|
||||||
key,
|
key,
|
||||||
name: value.name,
|
name: value.name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user