Skip to content

Commit

Permalink
chore: rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleSound authored May 2, 2024
1 parent 25ff0df commit e1478e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/compiler-vapor/src/transforms/transformSlotOutlet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ export const transformSlotOutlet: NodeTransform = (node, context) => {
irProps = isDynamic ? props : [props]

const { operation } = context.block
const directives = operation.filter(
const hasDirectives = operation.filter(
oper => oper.type === IRNodeTypes.WITH_DIRECTIVE,
) as WithDirectiveIRNode[]

if (directives.length) {
if (hasDirectives.length) {
context.options.onError(
createCompilerError(
ErrorCodes.X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET,
directives[0].dir.loc,
hasDirectives[0].dir.loc,
),
)
}
Expand Down

0 comments on commit e1478e2

Please sign in to comment.