Skip to content

Commit 3668939

Browse files
fix addedBy getting overwritten on edit
1 parent e74a2f6 commit 3668939

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/pages/portal/view/website_view.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,11 @@ class _WebsiteViewState extends State<WebsiteView> {
109109
.snakeCase;
110110
}
111111

112-
Website _buildWebsite() => Website(
112+
Website _buildWebsite() =>
113+
Website(
113114
id: _buildId(),
114-
ownerUid: _user?.uid,
115+
ownerUid:
116+
widget.website != null ? widget.website.ownerUid : _user?.uid,
115117
isPrivate: _onlyMeController.isSelected ?? true,
116118
label: _labelController.text,
117119
link: _linkController.text,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description: A mobile application for students at ACS UPB.
1111
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
1212
# Read more about iOS versioning at
1313
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
14-
version: 0.4.2+2
14+
version: 0.4.2+3
1515

1616
environment:
1717
sdk: ">=2.6.0 <3.0.0"

0 commit comments

Comments
 (0)