Skip to content

Commit

Permalink
revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
nick4598 committed Dec 18, 2024
1 parent 79ef8f6 commit a94542d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/transformer/src/IModelExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ export class IModelExporter {
/** Optionally cached entity change information */
private _sourceDbChanges?: ChangedInstanceIds;

private _initialized = false;
/**
* Retrieve the cached entity change information.
* @note This will only be initialized after [IModelExporter.exportChanges] is invoked or [IModelExporter.initialize] is called.
Expand Down Expand Up @@ -360,13 +359,12 @@ export class IModelExporter {
* you pass to [[IModelExporter.exportChanges]]
*/
public async initialize(options: ExporterInitOptions): Promise<void> {
if (!this.sourceDb.isBriefcaseDb() || this._initialized) return;
if (!this.sourceDb.isBriefcaseDb() || this._sourceDbChanges) return;

this._sourceDbChanges = await ChangedInstanceIds.initialize({
iModel: this.sourceDb,
...options,
});
this._initialized = true;
if (this._sourceDbChanges === undefined) return;

this._exportElementAspectsStrategy.setAspectChanges(
Expand Down

0 comments on commit a94542d

Please sign in to comment.