Skip to content

Commit

Permalink
Don't try to use a null exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
taylor-steve committed Jun 8, 2023
1 parent e366f9d commit 96b39f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/mukurtu_export/src/Form/ExportBaseForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function __construct(PrivateTempStoreFactory $temp_store_factory, $entity
$this->exporterConfig = $this->getExporterConfig();
$this->exporter = $this->exporterId ? $this->exportPluginManager->getInstance(['id' => $this->exporterId, 'configuration' => $this->exporterConfig]) : NULL;
$this->source = new FlaggedExporterSource('node');
$this->executable = new BatchExportExecutable($this->source, $this->exporter);
$this->executable = $this->exporter ? new BatchExportExecutable($this->source, $this->exporter) : NULL;
}

/**
Expand Down Expand Up @@ -157,4 +157,4 @@ protected function setExporterConfig($config)
return $this->store->set('exporter_config', $config);
}

}
}

0 comments on commit 96b39f7

Please sign in to comment.