Fix double cloning and unnecessary await
| @@ -1875,7 +1875,7 @@ function displayWorldEntries(name, data, navigation = navigation_option.none, fl | ||
| 1875 | 1875 | Trigger % |
| 1876 | 1876 | </small> |
| 1877 | 1877 | </div>`; |
| 1878 | 1878 | const mappedEntryBlocksPromises = page.map(async entry => await getWorldEntry(name, data, entry)).filter(x => x); |
| 1879 | 1879 | const blocks = await Promise.all(mappedEntryBlocksPromises); |
| 1880 | 1880 | const isCustomOrder = $('#world_info_sort_order').find(':selected').data('rule') === 'custom'; |
| 1881 | 1881 | if (!isCustomOrder) { |
| @@ -3284,7 +3284,7 @@ async function saveWorldInfo(name, data, immediately = false) { | ||
| 3284 | 3284 | } |
| 3285 | 3285 | |
| 3286 | 3286 | // Update cache immediately, so any future call can pull from this |
| 3287 | 3287 | worldInfoCache.set(name, structuredClone(data)); |
| 3288 | 3288 | |
| 3289 | 3289 | if (immediately) { |
| 3290 | 3290 | return await _save(name, data); |