Explorar o código

[importer_direct_upload] adding connector in snippet to remove the 'type' error

ayush.goyal %!s(int64=4) %!d(string=hai) anos
pai
achega
23cfc278db
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/libs/indexer/src/indexer/templates/importer.mako

+ 1 - 1
desktop/libs/indexer/src/indexer/templates/importer.mako

@@ -2213,7 +2213,7 @@ ${ commonheader(_("Importer"), "indexer", user, request, "60px") | n,unicode }
           wizard.computeSetDeferred.done(function () {
             dataCatalog.getEntry({
               compute: wizard.compute(),
-              connector: { id: self.sourceType }, // TODO: Use connectors in the importer
+              connector: { id: self.sourceType() }, // TODO: Use connectors in the importer
               namespace: wizard.namespace(),
               path: self.outputFormat() === 'table' ? [self.databaseName(), self.tableName()] : [],
             }).then(function (catalogEntry) {