INNER CODE UNIT · JavaScript

nodesToRemove

AscensionGameDev/Intersect-Engine · Intersect.Server/wwwroot/js/assets.js:872

			const nodesToRemove = existing?.children.filter(c => nodesToAdd.findIndex(n => n.id === c.id) < 0).map(c => c.id);
			console.debug('updating nodes', path, nodesToRemove, nodesToAdd);
			const updatedTree = this.#updateBrowseTree(nodesToAdd, nodesToRemove);
			console.debug('updated tree', updatedTree);
		} catch (err) {
			console.error(err);
			const updatedTree = this.#updateBrowseTree([], [encodeURIComponent(path)]);
			console.debug('updated tree', updatedTree);
			throw err;
		} finally {
			this.#pendingLoadRequests.delete(path);
		}
	}

	/**
	 *
	 * @param {LocalStorageBrowseNode} root
	 * @param {string} target

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…