OpenFn / OpenFn/lightning

Exception when History page gets a WorkOrderUpdated event

Open
#2,077 5 comments 0 reactions 1 assignee View on GitHub

@midigofrank is already working on this.

Since Sep 24, 2024.

bug Can't replicate
Dominant language
Elixir
Stars
296
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
50

Description

Sentry Issue: LIGHTNING-9Q

KeyError: key :id not found in: nil

If you are using the dot syntax, such as map.field, make sure the left-hand side of the dot is a map
  File "lib/lightning_web/live/run_live/index.ex", line 559, in anonymous fn/3 in LightningWeb.RunLive.Index.update_workorder/2
  File "lib/enum.ex", line 2528, in Enum."-reduce/3-lists^foldl/2-0-"/3
  File "lib/lightning_web/live/run_live/index.ex", line 558, in LightningWeb.RunLive.Index.update_workorder/2
  File "lib/lightning_web/live/run_live/index.ex", line 548, in LightningWeb.RunLive.Index.update_page/2
  File "lib/lightning_web/live/run_live/index.ex", line 252, in LightningWeb.RunLive.Index.handle_info/2
...
(3 additional frame(s) were not displayed)

(KeyError key :id not found in: nil

If you are using the dot syntax, such as map.field, make sure the left-hand side of the dot is a map)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.