Skip to content

Commit

Permalink
Fix syncing observations with no identifications
Browse files Browse the repository at this point in the history
If no identifications were present on the observation, there will not be
any keywords to be set. If there are no keywords, don't try to examine
the kw object to set keywords on the photo...
  • Loading branch information
rcloran committed May 30, 2023
1 parent 7b7452f commit 0f449d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lr-inaturalist-publish.lrdevplugin/SyncObservations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ local function kwIsEquivalent(kw, hierarchy, rootId)
end

local function syncKeywords(photo, kw, settings, keywordCache)
if not kw then
return
end

local unwanted = {}
local needsAddition = true
if settings.syncKeywords and kw then
Expand Down

0 comments on commit 0f449d3

Please sign in to comment.