The two snippets above are equivalent in functiona...
# prisma-whats-new
y
The two snippets above are equivalent in functionality, differing only at line 18 in terms of syntax: one line vs multiline if statement
n
@yus could you try two things? First, the function signature is now
(event)
and not
(event, cb)
, so you need to replace the
cb(e, {})
and
cb(null, event.data)
with
reject(e)
and
resolve(event.data)
respectively
y
ok let me try
n
second, what happens in test run vs. a real function invocation triggered by a mutation?
y
i havent tried
i always ensure test run succeeds before i try the real thing
but ill try
n
some things especially around logging are not 100% similar between test run and the real invocation
y
ok i figured out what the problem is
n
what is it?
y
when i set the z-index of the test button
to 10000
i am able to execute the code with no issues
its a css bug
n
oh
y
so there's nothing wrong with my script
n
so the difference in your code changes the layout slightly
😄
y
yea
class="test-button"
i set the z-index of that guy
thanks for ur help
i can code now
i think it should be fixed though
not sure how
n
b
@yus Thanks for figuring this out. I battled with this bug this morning😀.
y
I was going crazy bashing the button! Glad i helped someone else