Skip to content

Commit f8fd0b6

Browse files
authored
fix(datastore): cpk errors on a custom type (#2134)
1 parent 8c3c256 commit f8fd0b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/amplify_datastore/ios/Classes/SwiftAmplifyDataStorePlugin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ public class SwiftAmplifyDataStorePlugin: NSObject, FlutterPlugin {
519519
)
520520
}
521521
if !customTypeSchemaDependenciesOrder.contains(schemaName) {
522-
let schema: ModelSchema = try FlutterModelSchema.init(serializedData: serializedCustomTypeSchema)
522+
let schema: ModelSchema = try FlutterModelSchema.init(serializedData: serializedCustomTypeSchema, isModelType: false)
523523
.convertToNativeModelSchema(customTypeSchemasRegistry: customTypeSchemaRegistry)
524524
customTypeSchemaRegistry.addModelSchema(modelName: schemaName, modelSchema: schema)
525525
}

0 commit comments

Comments
 (0)