mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
fix: addressed type check issue
This commit is contained in:
@@ -157,7 +157,7 @@ export const InfisicalSecretInput = ({
|
||||
// find unclosed reference index less than the current cursor position
|
||||
let indexIter = -1;
|
||||
unclosedReferenceIndexMatches.forEach((index) => {
|
||||
if (index > indexIter && index < pos) {
|
||||
if (index && index > indexIter && index < pos) {
|
||||
indexIter = index;
|
||||
}
|
||||
});
|
||||
@@ -174,7 +174,7 @@ export const InfisicalSecretInput = ({
|
||||
// this is so that we know the limitation for slicing references
|
||||
let indexIter = Infinity;
|
||||
unclosedReferenceIndexMatches.forEach((index) => {
|
||||
if (index > pos && index < indexIter) {
|
||||
if (index && index > pos && index < indexIter) {
|
||||
indexIter = index;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user