Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 24c835e

Browse files
committed
Fix an issue with categories order affecting diffing
1 parent fe3266f commit 24c835e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/WordPressKit/Models/RemotePostParameters.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ extension RemotePostCreateParameters {
115115
if previous.tags != tags {
116116
changes.tags = tags
117117
}
118-
if previous.categoryIDs != categoryIDs {
118+
if Set(previous.categoryIDs) != Set(categoryIDs) {
119119
changes.categoryIDs = categoryIDs
120120
}
121121
if previous.metadata != metadata {

0 commit comments

Comments
 (0)