mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 13:27:46 +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
|
// find unclosed reference index less than the current cursor position
|
||||||
let indexIter = -1;
|
let indexIter = -1;
|
||||||
unclosedReferenceIndexMatches.forEach((index) => {
|
unclosedReferenceIndexMatches.forEach((index) => {
|
||||||
if (index > indexIter && index < pos) {
|
if (index && index > indexIter && index < pos) {
|
||||||
indexIter = index;
|
indexIter = index;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -174,7 +174,7 @@ export const InfisicalSecretInput = ({
|
|||||||
// this is so that we know the limitation for slicing references
|
// this is so that we know the limitation for slicing references
|
||||||
let indexIter = Infinity;
|
let indexIter = Infinity;
|
||||||
unclosedReferenceIndexMatches.forEach((index) => {
|
unclosedReferenceIndexMatches.forEach((index) => {
|
||||||
if (index > pos && index < indexIter) {
|
if (index && index > pos && index < indexIter) {
|
||||||
indexIter = index;
|
indexIter = index;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user