wip: 🚧 dump

This commit is contained in:
Mel Massadian
2024-04-25 21:56:59 +02:00
parent 77348c4adb
commit fa2397585f
2 changed files with 1 additions and 4 deletions
-1
View File
@@ -482,7 +482,6 @@ app.registerExtension({
async beforeRegisterNodeDef(nodeType, nodeData, _app) {
if (nodeData.name === 'Constant (mtb)') {
infoLogger('registering constant')
new ConstantJs(nodeType)
}
},
+1 -3
View File
@@ -833,9 +833,7 @@ const mtb_widgets = {
case 'Get Batch From History (mtb)': {
const onNodeCreated = nodeType.prototype.onNodeCreated
nodeType.prototype.onNodeCreated = function () {
const r = onNodeCreated
? onNodeCreated.apply(this, arguments)
: undefined
const r = onNodeCreated ? onNodeCreated.apply(this, []) : undefined
const internal_count = this.widgets.find(
(w) => w.name === 'internal_count',
)