@matchlighter/common_library
Advanced tools
Comparing version 1.3.17 to 1.3.18
@@ -18,3 +18,4 @@ "use strict"; | ||
if (this.usedPortals[key] && this.activeBlock(key) == newEntry) { | ||
lastUsed.setUsed(false); | ||
if (lastUsed) | ||
lastUsed.setUsed(false); | ||
newEntry.setUsed(true); | ||
@@ -37,3 +38,3 @@ } | ||
activeBlock(key) { | ||
if (this.blocks[key].length === 0) | ||
if (!this.blocks[key]?.length) | ||
return null; | ||
@@ -40,0 +41,0 @@ return this.blocks[key].reduce((last, current) => current.priority >= last.priority ? current : last); |
@@ -16,3 +16,4 @@ import React, { useContext, useLayoutEffect, useRef, useState } from "react"; | ||
if (this.usedPortals[key] && this.activeBlock(key) == newEntry) { | ||
lastUsed.setUsed(false); | ||
if (lastUsed) | ||
lastUsed.setUsed(false); | ||
newEntry.setUsed(true); | ||
@@ -36,3 +37,4 @@ } | ||
activeBlock(key) { | ||
if (this.blocks[key].length === 0) | ||
var _a; | ||
if (!((_a = this.blocks[key]) === null || _a === void 0 ? void 0 : _a.length)) | ||
return null; | ||
@@ -39,0 +41,0 @@ return this.blocks[key].reduce((last, current) => current.priority >= last.priority ? current : last); |
{ | ||
"name": "@matchlighter/common_library", | ||
"version": "1.3.17", | ||
"version": "1.3.18", | ||
"description": "Shared Functions, Helpers, Patterns & Utilities for Apps and Libraries", | ||
@@ -5,0 +5,0 @@ "author": "Matchlighter", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
329658
5186