From f569fef9a1b4c182272f32d0e9b04f4d025b11cf Mon Sep 17 00:00:00 2001 From: Youngteac Hong Date: Fri, 25 Aug 2023 20:15:50 +0900 Subject: [PATCH] Recover Select to prevent unsupported operation (#629) --- api/converter/from_pb.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/converter/from_pb.go b/api/converter/from_pb.go index 5480fe7f0..dcc119b6f 100644 --- a/api/converter/from_pb.go +++ b/api/converter/from_pb.go @@ -233,6 +233,9 @@ func FromOperations(pbOps []*api.Operation) ([]operations.Operation, error) { op, err = fromEdit(decoded.Edit) case *api.Operation_Style_: op, err = fromStyle(decoded.Style) + case *api.Operation_Select_: + // NOTE(hackerwins): Operation_Select is deprecated. + continue case *api.Operation_Increase_: op, err = fromIncrease(decoded.Increase) case *api.Operation_TreeEdit_: