Skip to content

Commit bf7c2b1

Browse files
committed
Fix filename fallback logic
1 parent bcfcb42 commit bf7c2b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/presets/near-operation-file/src

packages/presets/near-operation-file/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export const preset: Types.OutputPreset<NearOperationFileConfig> = {
269269

270270
return appendFileNameToFilePath(
271271
newFilePath,
272-
filePerOperation
272+
filePerOperation && customFilename
273273
? customFilename // Note: Unnamed operations will cause `operationName` to be undefined. In such case, the generated filename will be based on the source document file.
274274
: fileName,
275275
extension,

0 commit comments

Comments
 (0)