mirror of
https://github.com/System-End/shipment-viewer.git
synced 2026-04-19 19:45:07 +00:00
safety first
This commit is contained in:
parent
11c0707e16
commit
20ff7edf1d
1 changed files with 2 additions and 2 deletions
|
|
@ -50,11 +50,11 @@ class Shipment < Norairrecord::Table
|
|||
end
|
||||
|
||||
def source_url
|
||||
fields["source_rec_url"]["url"]
|
||||
fields["source_rec_url"]&["url"]
|
||||
end
|
||||
|
||||
def source_id
|
||||
source_url.split('/').last
|
||||
source_url&.split('/').last
|
||||
end
|
||||
|
||||
def icon
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue