fix: check if config.tick exists before calling it

pull/7906/head
Bruno Calou 4 years ago
parent 0b46c72cad
commit 312298a0e8

@ -233,7 +233,7 @@ export function create_out_transition(node: Element & ElementCSSInlineStyle, fn:
return {
end(reset) {
if (reset && config.tick) {
if (reset && config?.tick) {
config.tick(1, 0);
}

Loading…
Cancel
Save