Unasync getWorldEntry
This commit is contained in:
parent
d57e43df54
commit
8777526f8a
|
@ -1875,8 +1875,7 @@ function displayWorldEntries(name, data, navigation = navigation_option.none, fl
|
||||||
Trigger %
|
Trigger %
|
||||||
</small>
|
</small>
|
||||||
</div>`;
|
</div>`;
|
||||||
const mappedEntryBlocksPromises = page.map(entry => getWorldEntry(name, data, entry)).filter(x => x);
|
const blocks = page.map(entry => getWorldEntry(name, data, entry)).filter(x => x);
|
||||||
const blocks = await Promise.all(mappedEntryBlocksPromises);
|
|
||||||
const isCustomOrder = $('#world_info_sort_order').find(':selected').data('rule') === 'custom';
|
const isCustomOrder = $('#world_info_sort_order').find(':selected').data('rule') === 'custom';
|
||||||
if (!isCustomOrder) {
|
if (!isCustomOrder) {
|
||||||
blocks.forEach(block => {
|
blocks.forEach(block => {
|
||||||
|
@ -2216,7 +2215,7 @@ function parseRegexFromString(input) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getWorldEntry(name, data, entry) {
|
function getWorldEntry(name, data, entry) {
|
||||||
if (!data.entries[entry.uid]) {
|
if (!data.entries[entry.uid]) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue