fix type error (config is always defined when this is loaded)
This commit is contained in:
parent
a715f534b8
commit
5d2ef8989e
|
@ -15,7 +15,7 @@ export const Template = () => {
|
|||
return;
|
||||
}
|
||||
|
||||
instance.current = new TemplateCl(config, templateHolder.current);
|
||||
instance.current = new TemplateCl(config!, templateHolder.current);
|
||||
|
||||
instance.current.on("autoDetectWidth", (width) => {
|
||||
console.log("autodetectwidth", width);
|
||||
|
|
Loading…
Reference in New Issue