fix: tip when have no template

instead of js error warning