fix: editor text mode bug
This commit is contained in:
@@ -555,8 +555,7 @@ class _JsonEditorState extends State<JsonEditor> {
|
||||
controller: _controller,
|
||||
onChanged: parseData,
|
||||
maxLines: 10,
|
||||
minLines: null,
|
||||
expands: true,
|
||||
// expands: true,
|
||||
textAlignVertical: TextAlignVertical.top,
|
||||
decoration: const InputDecoration(
|
||||
border: InputBorder.none,
|
||||
|
||||
@@ -157,7 +157,14 @@ class ProfileDetailsNotifier extends _$ProfileDetailsNotifier with AppLogger {
|
||||
case LocalProfileEntity() when value.isEditing:
|
||||
loggy.debug('editing profile');
|
||||
failureOrSuccess = await _profilesRepo.patch(profile).run();
|
||||
|
||||
if (failureOrSuccess.isRight()) {
|
||||
failureOrSuccess = await _profilesRepo
|
||||
.updateContent(
|
||||
profile.id,
|
||||
value.configContent,
|
||||
)
|
||||
.run();
|
||||
}
|
||||
default:
|
||||
loggy.warning("local profile can't be added manually");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user