We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9aef718 commit efa6874Copy full SHA for efa6874
components/imagior/sources/new-template/new-template.mjs
@@ -49,6 +49,10 @@ export default {
49
50
const newTemplates = templates.filter(({ createdAt }) => Date.parse(createdAt) >= lastTs);
51
52
+ if (!newTemplates?.length) {
53
+ return;
54
+ }
55
+
56
this._setLastTs(Date.parse(newTemplates[0].createdAt));
57
58
newTemplates.forEach((template) => {
0 commit comments